'should raise AttributeError when the list is empty
and someone tries to access a method or property on it'

def test_attribute_error_for_empty(self):

    with self.assertRaises(AttributeError):
        the_list = ElementList([])
        the_list.unknown_method()
