Пример #1
0
    def fqdn(self):
        if self.itype == 'fqdn':
            return self.indicator

        if self.itype != 'url':
            return

        return url_to_fqdn(self.indicator)
Пример #2
0
def test_urls_fqdns():
    for g in GOOD:
        assert url_to_fqdn(g)
Пример #3
0
def test_urls_fqdns():
    for g in GOOD:
        assert url_to_fqdn(g)