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