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

def test_setResponseCodeAndMessageNotBytes(self):

    channel = DummyChannel()
    req = http.Request(channel, False)
    self.assertRaises(TypeError, req.setResponseCode, 202, u'not    happily    accepted')
