

def test_add_queued(self):
    queue = Queue(self.store, self.relay)
    queue._add_queued((10, 'one'))
    queue._add_queued((5, 'two'))
    queue._add_queued((99, 'one'))
    queue._add_queued((7, 'three'))
    self.assertEqual([(5, 'two'), (7, 'three'), (10, 'one')], queue.queued)
    queue.assertTrue(queue.wake.isSet())

dataset/ETHPy150Open slimta/python-slimta/test/test_slimta_queue.py TestQueue.test_add_queued/VarMisuse@96/128 `self`->`queue`