def METHOD_NAME(self):
    lst = LinkedList()
    with self.assertRaises(IndexError) as err:
        lst.shift()
        self.assertEqual(type(err.exception), IndexError)
        self.assertEqual(err.exception.args[0], "List is empty")