

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

dataset/ETHPy150Open slimta/python-slimta/test/test_slimta_queue.py TestQueue.test_load_all/VarMisuse@53/64 `self`->`queue`