def test_get_ptr(self): helper = DnsHelper('megacorpone.com') records = helper.get_ptr('51.79.37.18') assert len(records) == 1 and match(r'^.+\.megacorpone\.com$', records[0][1])
def test_get_ptr(self): helper = DnsHelper('megacorpone.com') records = helper.get_ptr('51.79.37.18') assert len(records) == 1 and 'megacorpone.com' in records[0][1]