Пример #1
0
class AsyncioFactoryConnectTest(unittest.TestCase):

    def setUp(self):
        self.graph = GraphDatabase("http://localhost:8182/",
                                   username="******",
                                   password="******")

    def tearDown(self):
        self.graph.close()

    def test_send(self):
        connection = self.graph.connect().result()
        resp = connection.send("1 + 1")
        msg = resp.read().result()
        self.assertEqual(msg.status_code, 200)
        self.assertEqual(msg.data[0], 2)
Пример #2
0
 def setUp(self):
     self.graph = GraphDatabase("http://localhost:8182/",
                                username="******",
                                password="******")