def test_contains(self): pq = PriorityQueue(lambda i: i.__key__(), self.items) self.assertEqual(pq.contains(Item(4)), True)