예제 #1
0
 def test_fails_silently_if_import_does_not_exist(self):
     self.import_module.side_effect = ImportError
     discover()  # No exception raised means it worked
예제 #2
0
 def test_fails_silently_if_import_does_not_exist(self):
     self.import_module.side_effect = ImportError
     discover()  # No exception raised means it worked
예제 #3
0
 def test_autodiscover_attempts_to_import_gutter_in_installed_apps(self):
     discover()
     self.import_module.assert_called_once_with('foo.bar.gutter')
예제 #4
0
 def test_autodiscover_attempts_to_import_gutter_in_installed_apps(self):
     discover()
     self.import_module.assert_called_once_with('foo.bar.gutter')