

def test_bad_port_exception(self):
    graph = GraphDatabase(url='ws://localhost:81/', loop=self.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_bad_port_exception/original