#NEWLINE# @ expectedFailure #NEWLINE# def test_cant_or_expressions_when_braces_are_not_present( self ) : #NEWLINE# #INDENT# field1 = NaturalQueryDescriptor ( 'field1' ) #NEWLINE# field2 = NaturalQueryDescriptor ( 'field2' ) #NEWLINE# expected = ( Q ( field1__exact = sentinel . VALUE1 ) | Q ( field2__exact = sentinel . VALUE2 ) ) #NEWLINE# actual = ( field1 == ( sentinel . VALUE1 | expected ) == sentinel . VALUE2 ) #NEWLINE# self . assertEqual ( actual , expected )