def test_put_1(self): q = Queue() q.put(1) self.assertEqual(q.top(), 1)
def test_put_2(self): q = Queue() q.put(2) self.assertFalse(q.empty()) q.put(1) self.assertEqual(q.top(), 2)