@defer.inlineCallbacks
        def statustest_web_server_without_pb(self):

            # stop the perspective broker server for the duration of this test:
            self.pb_server.stopService()
            self.addCleanup(self.pb_server.startService)

            try:
                yield client.getPage('http://localhost:8080')
                self.fail('Expected an error to be raised.')
            except error.Error as e:
                self.assertEquals(e.status, '500')

                # since we've turned on debugging for localhost, we should get a traceback:
                self.assertIn('web.Server Traceback', e.response)
If the pb server is stopped, the web server should return an error status.
dataset/ETHPy150Open foundit/Piped/doc/tutorials/getting_started/6_testing/tutorial_bundle/test_processors.py/TestTutorialProcessor.TestTutorial.statustest_web_server_without_pb