#NEWLINE# def test_can_or_expressions_referring_to_second_when_braces_are_present( self ) : #NEWLINE# #INDENT# field1 = DateTimeNaturalQueryDescriptor ( 'field1' ) #NEWLINE# field2 = DateTimeNaturalQueryDescriptor ( 'field2' ) #NEWLINE# expected = ( Q ( field1__second = sentinel . VALUE1 ) | Q ( field2__second = sentinel . VALUE2 ) ) #NEWLINE# actual = ( ( field1 . second == sentinel . VALUE1 ) | ( expected . second == sentinel . VALUE2 ) ) #NEWLINE# self . assertEqual ( actual , expected )