def test_deque_append_doesnt_increase_size_with_maxlen(self) -> None:
     temp_list = ListBasedDeque([1, 2, 3, 4, 5], maxlen=5)
     temp_list.append(42)
     self.assertTrue(len(temp_list) == temp_list.maxlen())
 def setUp(self):
     self.test_list = ListBasedDeque([1, 2, 3, 4, 5])
 def test_deque_append_with_full_deque(self) -> None:
     temp_list = ListBasedDeque([1, 2, 3, 4, 5], maxlen=5)
     temp_list.append(42)
     self.assertTrue(temp_list.pop() == 42 and temp_list.popleft() == 2)
 def test_deque_maxlen(self) -> None:
     l = ListBasedDeque([1, 2, 3], 5)
     self.assertTrue(l.maxlen() == 5)