コード例 #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')