'L{HTTPClientParser.parseVersion} raises L{ValueError} when passed an
unparsable version.'

def test_parseBadVersion(self):

    protocol = HTTPClientParser(None, None)
    e = BadResponseVersion
    f = protocol.parseVersion
    def checkParsing(s):
        exc = self.assertRaises(e, f, s)
        self.assertEqual(exc.data, s)
    checkParsing('foo')
    checkParsing('foo/bar/baz')
    checkParsing('foo/')
    checkParsing('foo/..')
    checkParsing('foo/a.b')
    checkParsing('foo/-1.-1')
