def test_rotate_queue_2(self): rotate_queue(self.qu, 2) self.assertEqual(self.qu.items, [3, 4, 5, 1, 2])
def test_rotate_queue_len(self): rotate_queue(self.qu, len(self.qu.items)) self.assertEqual(self.qu.items, [1, 2, 3, 4, 5])
def test_rotate_queue_1(self): rotate_queue(self.qu, 1) self.assertEqual(self.qu.items, [2, 3, 4, 5, 1])