class TestAC(unittest.TestCase): def setUp(self): self.query = WhoisQuery() def test_available(self): """ test available .ac domain name """ response = self.query.query("kristaps.ac") self.assertEqual(self.query.available, True) def test_unavailable(self): """ test unavailable .ac domain name """ response = self.query.query("nic.ac") self.assertEqual(self.query.available, False)
def setUp(self): self.query = WhoisQuery()