Пример #1
0
def test_html_bookmarks(capsys):
    importer.import_html_bookmarks(sample_input('html'),
                                   ['bookmark', 'keyword'], 'bookmark')
    imported = capsys.readouterr()[0]
    assert imported == bm_expected('html')
Пример #2
0
def test_html_searches(capsys):
    importer.import_html_bookmarks(sample_input('html'), ['search'], 'search')
    imported = capsys.readouterr()[0]
    assert imported == search_expected('html')