def test_simple_search_correctness_unicode_list(): link = 'http://export.arxiv.org/api/query?search_query=' correct_link = 'http://export.arxiv.org/api/query?search_query=all:electron+AND+all:proton&start=0&max_results=10' obtained_link = al.simple_search([u'electron', u'proton'], link, 0, 10) assert_equal(obtained_link, correct_link, "The obtained link is different from the expected one")
def test_simple_search_no_arguments(): link = 'http://export.arxiv.org/api/query?search_query=' with assert_raises(NoArgumentError): al.simple_search(False, link, 0, 10)