Exemplo n.º 1
0
def test_compose_query_with_multiple_terms():
    result = utils.compose_query('foo bar baz bub')
    assert 'AND' in result.connector
    assert len(result.children) is 4
Exemplo n.º 2
0
def test_compose_query_with_multiple_terms():
    result = utils.compose_query('foo bar baz bub')
    assert u'AND' in result.connector
    assert len(result.children) is 4
Exemplo n.º 3
0
def test_compose_query_with_single_term():
    result = utils.compose_query('testname')
    assert 'AND' in result.connector
    assert 'testname' in result.children[0]
Exemplo n.º 4
0
def test_compose_query_with_single_term():
    result = utils.compose_query('testname')
    assert u'AND' in result.connector
    assert 'testname' in result.children[0]