def test_bare(self): local = hostnames.reverse("server") self.assertEqual(local, "server")
def test_fqdn(self): local = hostnames.reverse("server.example.com") self.assertEqual(local, "com.example.server")