Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/d/j/django-settings-HEAD/tests/test_modelregister.py   django-settings(Download)
    def test_importing_special_module_should_add_all_registered_classes(self):
        # before special module import
        from .moduleregistry_testapp import models
        self.assert_false(hasattr(models, 'MyString'))
        self.assert_false('MyString' in models.registry)