def test(self):
     """Testing linked list"""
     linked_list = LinkedList()
     linked_list.push_back(1)
     linked_list.push_back("foo")
     linked_list.push_back([3, 2, 1])
     self.assertFalse(linked_list.empty())
     self.assertEqual(linked_list.pop_back(), [3, 2, 1])
     self.assertEqual(linked_list.pop_back(), "foo")
     self.assertEqual(linked_list.pop_back(), 1)
     self.assertTrue(linked_list.empty())
 def test(self):
     """Testing linked list"""
     linked_list = LinkedList()
     linked_list.push_front(1)
     linked_list.push_front(2)
     linked_list.push_front(3)
     self.assertFalse(linked_list.empty())
     self.assertEqual(linked_list.pop_back(), 1)
     self.assertEqual(linked_list.pop_back(), 2)
     self.assertEqual(linked_list.pop_back(), 3)
     self.assertTrue(linked_list.empty())
 def test(self):
     """Testing linked list"""
     linked_list = LinkedList(("one", 2, 3.141592))
     self.assertEqual(linked_list.pop_back(), "one")
     self.assertEqual(linked_list.pop_back(), 2)
     self.assertEqual(linked_list.pop_back(), 3.141592)