'L{http.Request.setResponseCode} takes a status code and causes it to be
used as the response status.'

def test_setResponseCode(self):

    channel = DummyChannel()
    req = http.Request(channel, False)
    req.setResponseCode(201)
    req.write('')
    self.assertEqual(channel.transport.written.getvalue().splitlines()[0], '(no    clientproto    yet)    201    Created')
