'If the transport reports that a protocol other than HTTP/1.1 or HTTP/2
is negotiated, an error occurs.'

def test_unknownProtocol(self):

    b = StringTransport()
    b.negotiatedProtocol = 'smtp'
    self.assertRaises(AssertionError, self._negotiatedProtocolForTransportInstance, b)
