Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
 def setUp(self):
     self.query = WhoisQuery()