'L{HTTPParser} calls its C{statusReceived} method when it receives a
status line.'

def test_statusCallback(self):

    status = []
    protocol = HTTPParser()
    protocol.statusReceived = status.append
    protocol.makeConnection(StringTransport())
    self.assertEqual(protocol.state, STATUS)
    protocol.dataReceived(('HTTP/1.1    200    OK' + self.sep))
    self.assertEqual(status, ['HTTP/1.1    200    OK'])
    self.assertEqual(protocol.state, HEADER)
