Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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))
Example #5
0
 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))
Example #6
0
 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))