Lines Matching refs:items
48 items = ActiveWorkItems.lookup_by_queue("test-queue")
52 self.assertEqual(items.next_item(queued_items, time), 1)
53 self.assertEqual(items.next_item([1], time), None)
54 self.assertEqual(items.next_item([], time), None)
56 self.assertEqual(items.time_for_item(1), time)
57 self.assertEqual(items.time_for_item(2), None)
59 items.expire_item(1)
61 self.assertEqual(items.time_for_item(1), time)
63 items = ActiveWorkItems.lookup_by_queue("test-queue")
64 self.assertEqual(items.time_for_item(1), None)