def test_tag_expiration(self) -> None:
        """Test that a tag can be expired and it becomes fresh if tagged again."""
        self.obs1.tag(["test"])
        self.obs1.expire_tag("test")
        tags = self.obs1.get_tags()
        self.assertEqual(len(tags), 1)
        tag_instance = tags["test"]
        self.assertEqual(tag_instance.fresh, False)

        self.obs1.tag(["test"])
        tags = self.obs1.get_tags()
        self.assertEqual(len(tags), 1)
        tag_instance = tags["test"]
        self.assertEqual(tag_instance.fresh, True)
Test that a tag can be expired and it becomes fresh if tagged again.
tests/schemas/tag.py