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