def test_bad_domain(self): """Test a known bad domain We should get back an empty list """ response = check.get_ns(BAD_DOMAIN) self.assertIsInstance(response, list) self.assertFalse(response)
def test_good_domain(self): """Test with a known good domain We should get back a list of records (strings) """ response = check.get_ns(GOOD_DOMAIN) self.assertIsInstance(response, list) for record in response: # TODO: Could check for ipv4/ipv6 but currently # we only care if we get something self.assertIsInstance(record, basestring)