def test_normalize_not_no_spaces(): assert normalize_not("type:not(A or B)") == "not type:(A or B)"
def test_normalize_not_spacing(): assert normalize_not( " some long type:not nominate ") == " not some long type:nominate "
def test_normalize_not_multiple(): assert normalize_not("type:not nominate and type:not qualify" ) == "not type:nominate and not type:qualify"
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" )
def test_normalize_not(): assert normalize_not("type:not nominate") == "not type:nominate"