示例#1
0
 async def test_start(self):
     future = start(null(self.produce()))
     self.assertTrue(isinstance(future, asyncio.Future))
     await asyncio.sleep(.1)
     self.assertTrue(self.iteration != 0)
示例#2
0
 def test_null(self):
     self.producer(null())
     self.assertEquals(5, self.iteration)
示例#3
0
 def test_backproject(self):
     frame_producer(backproject(1, null()))
示例#4
0
 def setUp(self):
     self.timer = Timer()
     inject([1, 2, 3], self.timer(null()))
示例#5
0
 def test_queue(self):
     frame_producer(queue(null()))