mirror of https://github.com/celery/kombu.git
using assert_called_once() in est__pop_ready_uses_lock (#1813)
This commit is contained in:
parent
6c8e7e6b28
commit
7187021ecc
|
@ -568,4 +568,4 @@ class test_Hub:
|
|||
def test__pop_ready_uses_lock(self):
|
||||
with patch.object(self.hub, '_ready_lock', autospec=True) as lock:
|
||||
self.hub._pop_ready()
|
||||
assert lock.__enter__.called_once()
|
||||
lock.__enter__.assert_called_once()
|
||||
|
|
Loading…
Reference in New Issue