We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ad9ade commit 7dfe7d4Copy full SHA for 7dfe7d4
tests/test_tube.py
@@ -30,6 +30,11 @@ async def test__tube_take(self):
30
self.assertEqual(taken_t.status, Status.TAKEN)
31
self.assertDictEqual(taken_t.data, t.data)
32
33
+ async def test__tube_take_no_tasks(self):
34
+ tube = self.create_tube()
35
+ taken_t = await tube.take(0.5)
36
+ self.assertIsNone(taken_t)
37
+
38
async def test__tube_ack(self):
39
tube = self.create_tube()
40
t = await tube.put(self._data_obj())
0 commit comments