コード例 #1
0
 def test_with_valid_tag(self):
     commands.delete(["--tag", "tagA", "tagB"])
     self.assertEqual(self.prj._records_deleted,
                      ["records_tagged_with_tagA",
                       "records_tagged_with_tagB"])
コード例 #2
0
ファイル: test_commands.py プロジェクト: ArtecGroup/sumatra
 def test_with_valid_tag(self):
     commands.delete(["--tag", "tagA", "tagB"])
     self.assertEqual(self.prj._records_deleted,
                      ["records_tagged_with_tagA",
                       "records_tagged_with_tagB"])
コード例 #3
0
 def test_with_invalid_record_labels(self):
     commands.delete(["recordA", "notarecordB", "recordC"])
     self.assertEqual(self.prj._records_deleted,
                      ["recordA", "recordC"])
コード例 #4
0
ファイル: test_commands.py プロジェクト: ArtecGroup/sumatra
 def test_with_invalid_record_labels(self):
     commands.delete(["recordA", "notarecordB", "recordC"])
     self.assertEqual(self.prj._records_deleted,
                      ["recordA", "recordC"])