def test_default_tag_expiration(self) -> None:
        """Test that a tag's expiration date tages the tag's default."""
        Tag(name="test", default_expiration=datetime.timedelta(days=365)).save()
        self.obs1.tag(["test"])
        tags = self.obs1.get_tags()
        self.assertEqual(len(tags), 1)
        tag_relationship = tags["test"]
        self.assertIsNotNone(tag_relationship.expires)
        self.assertGreater(
            tag_relationship.expires,
            tag_relationship.last_seen + datetime.timedelta(days=364),
        )
        self.assertLess(
            tag_relationship.expires,
            tag_relationship.last_seen + datetime.timedelta(days=366),
        )
Test that a tag's expiration date tages the tag's default.
tests/schemas/tag.py