Esempio n. 1
0
 def test_configuration_option(self):
     importer = ConfigurationImporter(check_options=False)
     self.assertEqual(importer.module, 'tests.settings.main')
     self.assertEqual(importer.name, 'NonExisting')
     importer = ConfigurationImporter(check_options=True)
     self.assertEqual(importer.module, 'tests.settings.main')
     self.assertEqual(importer.name, 'Test')
Esempio n. 2
0
 def test_initialization(self):
     importer = ConfigurationImporter()
     self.assertEqual(importer.module, 'tests.settings.main')
     self.assertEqual(importer.name, 'Test')
     self.assertEqual(
         repr(importer),
         "<ConfigurationImporter for 'tests.settings.main.Test'>")
Esempio n. 3
0
 def test_initialization_inheritance(self):
     importer = ConfigurationImporter()
     self.assertEqual(importer.module, 'tests.settings.inheritance')
     self.assertEqual(importer.name, 'Inheritance')