def test_search_filter_true(self): domains = ['example.com'] address = 'test.example.com' result = fierce.search_filter(domains, address) self.assertTrue(result)
def test_search_filter_false(self): domains = ['not.com'] address = 'test.example.com' result = fierce.search_filter(domains, address) self.assertFalse(result)
def test_search_filter_empty(self): domains = [] address = 'test.example.com' result = fierce.search_filter(domains, address) assert not result