Пример #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
Пример #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
Пример #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
Пример #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))
Пример #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))
Пример #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))