Ejemplo n.º 1
0
def test_search():
    "miner.search - basic test"
    res = miner.search(filter = {'has_full_text': True}, limit = 5)
    assert 'Response' == res.__class__.__name__
    assert list == res.items.__class__
    assert dict == res.result.__class__
    assert 'instancemethod' == res.links.__class__.__name__
Ejemplo n.º 2
0
def test_search_limit():
    "miner.ssearch - xxx"
    res = miner.search(filter = {'has_full_text': True}, limit = 1)
    assert 'Response' == res.__class__.__name__
    assert 1 == len(res.items)