def fqdn(self): if self.itype == 'fqdn': return self.indicator if self.itype != 'url': return return url_to_fqdn(self.indicator)
def test_urls_fqdns(): for g in GOOD: assert url_to_fqdn(g)