コード例 #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
ファイル: test_templatetags.py プロジェクト: 1234-/kitsune
 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
ファイル: test_templatetags.py プロジェクト: 1234-/kitsune
 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))