def test_tag_multiple_records(self): commands.tag(["foo", "a", "b", "c"]) self.assertEqual(self.prj.tags["a"], "foo") self.assertEqual(self.prj.tags["b"], "foo") self.assertEqual(self.prj.tags["c"], "foo")
def test_remove_tag(self): commands.tag(["-r", "foo", "a", "b"]) self.assertEqual(self.prj.removed_tags["a"], "foo") self.assertEqual(self.prj.removed_tags["b"], "foo")
def test_single_arg_interpreted_as_tag_on_last_record(self): commands.tag(["foo"]) self.assertEqual(self.prj.tags["most_recent"], "foo")
def test_single_arg_interpreted_as_status_on_last_record(self): commands.tag(["_succeeded_"]) self.assertEqual(self.prj.tags["most_recent"], "_succeeded_")