'L{http.Request.setResponseCode} accepts C{int} for the code parameter
and raises L{TypeError} if passed anything else.'

def test_setResponseCodeAcceptsIntegers(self):

    req = http.Request(DummyChannel(), False)
    req.setResponseCode(1)
    self.assertRaises(TypeError, req.setResponseCode, '1')
