def test_load_urls(urlfile='test-load-urls.json'): assert maltrieve.load_urls(urlfile) == \ set(['http://example.com/badurl'])
def test_empty_urls(): fname = 'maltrieve.py' assert maltrieve.load_urls(fname) == set()