summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorshipmints <shipmints@gmail.com>2019-10-15 22:16:14 -0400
committerAlex Grönholm <alex.gronholm@nextday.fi>2019-10-17 20:03:36 +0300
commitfe987a283d2bc96ea126861a220eb424182436b0 (patch)
treeb09bdb830003373866f1f9272604e3cc91a27055 /tests
parentd1df878c02defcd14c5a56d4c3a70011744fa219 (diff)
downloadapscheduler-fe987a283d2bc96ea126861a220eb424182436b0.tar.gz
Updated per suggestions from @agronholm.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_util.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 441c60d..30ce06d 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -359,20 +359,20 @@ class TestCheckCallableArgs(object):
'kwargs: y')
-def not_a_coro(x):
- pass
-
-
-async def a_coro(x):
- pass
+class TestIsCoroutineFunctionPartial(object):
+ @staticmethod
+ def not_a_coro(x):
+ pass
+ @staticmethod
+ async def a_coro(x):
+ pass
-class TestIsCoroutineFunctionPartial(object):
def test_non_coro(self):
- assert iscoroutinefunction_partial(not_a_coro) is False
+ assert not iscoroutinefunction_partial(self.not_a_coro)
def test_coro(self):
- assert iscoroutinefunction_partial(a_coro) is True
+ assert iscoroutinefunction_partial(self.a_coro)
def test_coro_partial(self):
- assert iscoroutinefunction_partial(partial(a_coro, 1)) is True
+ assert iscoroutinefunction_partial(partial(self.a_coro, 1))