def test_abbreviate_fqdn_abbreviated(self): self.assertEqual(tags.abbreviate_fqdn("subdomain"), "subdomain")
def test_abbreviate_fqdn(self): self.assertEqual(tags.abbreviate_fqdn("subdomain.example.com"), "subdomain")