'L{HTTPClientParser.statusReceived} raises L{ParseError} if it is called
with a status line which cannot be parsed.'

def test_badResponseStatus(self):

    protocol = HTTPClientParser(None, None)
    def checkParsing(s):
        exc = self.assertRaises(ParseError, protocol.statusReceived, s)
        self.assertEqual(exc.data, s)
    checkParsing('foo')
    checkParsing('HTTP/1.1    bar    OK')
