Test that __all__ only points to valid attributes.
(self)
| 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__: |