def test_load_all_empty(self):
     self.store.load().AndReturn([])
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay)
     queue._load_all()
     self.assertEqual([], queue.queued)
     self.assertFalse(queue.wake.isSet())
Beispiel #2
0
 def test_load_all_empty(self):
     self.store.load().AndReturn([])
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay)
     queue._load_all()
     self.assertEqual([], queue.queued)
     self.assertFalse(queue.wake.isSet())
 def test_load_all(self):
     self.store.load().AndReturn([(3, 'one'), (5, 'two'), (1, 'three')])
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay)
     queue._load_all()
     self.assertEqual([(1, 'three'), (3, 'one'), (5, 'two')], queue.queued)
     self.assertTrue(queue.wake.isSet())
Beispiel #4
0
 def test_load_all(self):
     self.store.load().AndReturn([(3, 'one'), (5, 'two'), (1, 'three')])
     self.mox.ReplayAll()
     queue = Queue(self.store, self.relay)
     queue._load_all()
     self.assertEqual([(1, 'three'), (3, 'one'), (5, 'two')], queue.queued)
     self.assertTrue(queue.wake.isSet())