def test_fails_silently_if_import_does_not_exist(self): self.import_module.side_effect = ImportError discover() # No exception raised means it worked
def test_autodiscover_attempts_to_import_gutter_in_installed_apps(self): discover() self.import_module.assert_called_once_with('foo.bar.gutter')