

def test_setResponseCode(self):
    '\n        Test that the response code of a fake request can be set.\n        '
    req = FakeRequest()
    req.setResponseCode(BAD_REQUEST)
    self.assertEqual(req.code, BAD_REQUEST)

dataset/ETHPy150Open twisted/nevow/nevow/test/test_testutil.py TestFakeRequest.test_setResponseCode/original