

def test_wrong_protocol_exception(self):
    graph = GraphDatabase(url='wss://localhost:8182/', loop=graph.loop, future_class=Future)

    @trollius.coroutine
    def go():
        with self.assertRaises(RuntimeError):
            connection = (yield From(graph.connect()))
    self.loop.run_until_complete(go())

dataset/ETHPy150Open davebshow/gremlinclient/tests/test_trollius.py TrolliusFactoryConnectTest.test_wrong_protocol_exception/VarMisuse@20/33 `self`->`graph`