def test_handler(self):

        @trollius.coroutine
        def go():
            connection = yield From(self.graph.connect())
            resp = connection.send("1 + 1", handler=lambda x: x[0] * 2)
            while True:
                msg = yield From(resp.read())
                if msg != None:
                    break
                self.assertEqual(msg, 4)
            connection.conn.close()
        self.loop.run_until_complete(go())
dataset/ETHPy150Open davebshow/gremlinclient/tests/test_trollius.py/TrolliusFactoryConnectTest.test_handler/operator `is` -> `!=`