def test_handle_domains_argument_fnf_error(): scan_utils.handle_domains_argument("notarealfile.csv", "./cache")
def test_handle_domains_argument_io_error(): scan_utils.handle_domains_argument("http://thing.notarealtld", "./cache")
def test_handle_domains_argument(domains, cache, expected): result = scan_utils.handle_domains_argument(domains, cache) assert result == expected