def test_equals_operator_nonempty_mem_check(): test_string = MyList("test") test_str2 = MyList("newstring") test_string.reassign(test_str2) test_str2.pop_back() assert get_MyList(test_string) != get_MyList(test_str2)
def test_equals_operator_nonempty(): test_string = MyList("test") test_string.reassign(MyList("newstring")) test_string = get_MyList(test_string) assert test_string == "newstring"