MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_all

Method test_all

Lib/test/datetimetester.py:83–87  ·  view source on GitHub ↗

Test that __all__ only points to valid attributes.

(self)

Source from the content-addressed store, hash-verified

81 self.assertIs(UTC, timezone.utc)
82
83 def test_all(self):
84 """Test that __all__ only points to valid attributes."""
85 all_attrs = dir(datetime_module)
86 for attr in datetime_module.__all__:
87 self.assertIn(attr, all_attrs)
88
89 def test_name_cleanup(self):
90 if '_Pure' in self.__class__.__name__:

Callers

nothing calls this directly

Calls 2

dirFunction · 0.85
assertInMethod · 0.80

Tested by

no test coverage detected