def test_main(self): config = self.get_standard_config() c = CollectorApp(config) c.main() eq_(c.web_server, self.mocked_web_server) config.web_server.wsgi_server_class.assert_called_with( config, (BreakpadCollector2015, ))
def test_main(self): config = self.get_standard_config() c = CollectorApp(config) c.main() eq_(config.crash_storage, self.mocked_crash_storage) eq_(config.throttler, self.mocked_throttler) eq_(c.web_server, self.mocked_web_server) config.storage.crashstorage_class.assert_called_with(config.storage) config.web_server.wsgi_server_class.assert_called_with(config, (BreakpadCollector,))
def test_main(self): config = self.get_standard_config() c = CollectorApp(config) c.main() eq_(c.web_server, self.mocked_web_server) config.web_server.wsgi_server_class.assert_called_with( config, (BreakpadCollector2015, ) )
def test_main(self): config = self.get_standard_config() c = CollectorApp(config) c.main() self.assertEqual(config.crash_storage, self.mocked_crash_storage) self.assertEqual(config.throttler, self.mocked_throttler) self.assertEqual(c.web_server, self.mocked_web_server) config.storage.crashstorage_class.assert_called_with(config.storage) config.web_server.wsgi_server_class.assert_called_with( config, (BreakpadCollector, ))