class ReverseDnsTest(unittest.TestCase): def setUp(self): self.reverseDns = ReverseDns(ws_uri=ws_uri, username=username, password=password) def test_get_reverse_dns(self): response = self.reverseDns.get(addresses=['77.81.230.29']) self.assertIsNotNone(response) self.assertIsInstance(response, list) def test_set_enqueue_set_reverse_dns(self): response = self.reverseDns.set(address='95.110.165.246', host_name=['myTestUnit.py']) self.assertIs(response, True) def test_set_enqueue_reset_reverse_dns(self): response = self.reverseDns.reset(address=['95.110.165.246']) self.assertIs(response, True)
def setUp(self): self.reverseDns = ReverseDns(ws_uri=ws_uri, username=username, password=password)