def test_prepend_multiple_elements(self):
     l = LinkedList([2, 3, 4])
     l.prepend(1)
     l.prepend(0)
     self.assertTrue(l.getElementAtIndex(0) == 0)
     self.assertTrue(l.getElementAtIndex(1) == 1)
 def test_get_first_element_empty_list(self):
     l = LinkedList()
     with self.assertRaises(RuntimeError):
         l.getElementAtIndex(0)
 def test_prepend_one_elemen(self):
     l = LinkedList([4, 5, 6])
     l.prepend(1)
     self.assertTrue(l.getElementAtIndex(0) == 1)