def test_remove_in_list(self): tags = ['tag1', 'tag2'] tag = 'tag3' tags.append(tag) tags = remove(tags, tag) eq_(2, len(tags)) assert tag not in tags
def test_remove_in_list(self): tags = ["tag1", "tag2"] tag = "tag3" tags.append(tag) tags = remove(tags, tag) eq_(2, len(tags)) assert tag not in tags
def test_remove_not_in_list(self): tags = ['tag1', 'tag2'] tag = 'tag3' tags = remove(tags, tag) # Nothing was removed and we didn't crash. eq_(2, len(tags))
def test_remove_not_in_list(self): tags = ["tag1", "tag2"] tag = "tag3" tags = remove(tags, tag) # Nothing was removed and we didn't crash. eq_(2, len(tags))