Exemplo n.º 1
0
def test_normalize_not_no_spaces():
    assert normalize_not("type:not(A or B)") == "not type:(A or B)"
Exemplo n.º 2
0
def test_normalize_not_spacing():
    assert normalize_not(
        "  some long type:not nominate  ") == "  not some long type:nominate  "
Exemplo n.º 3
0
def test_normalize_not_multiple():
    assert normalize_not("type:not nominate and type:not qualify"
                         ) == "not type:nominate and not type:qualify"
Exemplo n.º 4
0
def test_normalize_not_and_or():
    assert (normalize_not(
        "type:not nominate and type:not qualify or type:not nominate and type:reply"
    ) == "not type:nominate and not type:qualify or not type:nominate and type:reply"
            )
Exemplo n.º 5
0
def test_normalize_not():
    assert normalize_not("type:not nominate") == "not type:nominate"