From 3e1ae75c97b59f4e88d705fc733574f643c95c52 Mon Sep 17 00:00:00 2001 From: davebshow <davebshow@gmail.com> Date: Wed, 29 Jul 2015 10:36:45 -0400 Subject: [PATCH] uncommented submit test --- tests/tests.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/tests.py b/tests/tests.py index b35bebb..a756068 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -18,17 +18,17 @@ class SubmitTest(unittest.TestCase): def tearDown(self): self.loop.close() - # def test_submit(self): - # - # @asyncio.coroutine - # def go(): - # resp = yield from submit("4 + 4", bindings={"x": 4}, - # loop=self.loop) - # results = yield from resp.get() - # return results - # - # results = self.loop.run_until_complete(go()) - # self.assertEqual(results[0].data[0], 8) + def test_submit(self): + + @asyncio.coroutine + def go(): + resp = yield from submit("4 + 4", bindings={"x": 4}, + loop=self.loop) + results = yield from resp.get() + return results + + results = self.loop.run_until_complete(go()) + self.assertEqual(results[0].data[0], 8) def test_rebinding(self): -- GitLab