def test_search(self):
     res = search.Query('santos', country='jp')
     matches = res.list()
     assert is_match_for(NAME, matches[0][0]) == True
     assert is_match_for(NAME, matches[1][0]) == True
     assert is_match_for(WISHLIST, matches[0][1]) == True
     assert is_match_for(WISHLIST, matches[1][1]) == True
Exemple #2
0
def app(query, store):
    if store is None:
        store = 'us'
    res = search.Query(query, country=store)
    matches = res.list()

    for match in matches:
        print match
Exemple #3
0
 def test_search(self):
     res = search.Query('caio begotti', country='br')
     matches = res.list()
     assert is_match_for(NAME, matches[0][0]) == True
 def test_search(self):
     res = search.Query('*****@*****.**', country='in')
     matches = res.list()[0]
     assert is_match_for(NAME, matches[0]) == True
     assert is_match_for(WISHLIST, matches[1]) == True