Esempio n. 1
0
    def test_search_filter_true(self):
        domains = ['example.com']
        address = 'test.example.com'

        result = fierce.search_filter(domains, address)

        self.assertTrue(result)
Esempio n. 2
0
    def test_search_filter_false(self):
        domains = ['not.com']
        address = 'test.example.com'

        result = fierce.search_filter(domains, address)

        self.assertFalse(result)
Esempio n. 3
0
    def test_search_filter_empty(self):
        domains = []
        address = 'test.example.com'

        result = fierce.search_filter(domains, address)

        assert not result