def test_method_that_verifies_if_the_list_is_empty(self): "should verify if the list is empty" the_list = ElementList([1, 2, 3]) self.assertFalse(the_list.is_empty()) self.assertTrue(ElementList([]).is_empty())
def test_method_that_verifies_if_the_list_is_empty(): "should verify if the list is empty" the_list = ElementList([1, 2, 3]) assert not the_list.is_empty() assert ElementList([]).is_empty()