#NEWLINE# def test_can_and_expressions_referring_to_hour_when_braces_are_present( self ) : #NEWLINE# #INDENT# field1 = DateTimeNaturalQueryDescriptor ( 'field1' ) #NEWLINE# field2 = DateTimeNaturalQueryDescriptor ( 'field2' ) #NEWLINE# expected = Q ( field1__hour = sentinel . VALUE1 , field2__hour = sentinel . VALUE2 ) #NEWLINE# actual = ( ( field1 . hour == sentinel . VALUE1 ) & ( actual . hour == sentinel . VALUE2 ) ) #NEWLINE# self . assertEqual ( actual , expected )