#NEWLINE# def test_can_and_expressions_referring_to_day_when_braces_are_present( self ) : #NEWLINE# #INDENT# field1 = DateNaturalQueryDescriptor ( 'field1' ) #NEWLINE# field2 = DateNaturalQueryDescriptor ( 'field2' ) #NEWLINE# expected = Q ( field1__day = sentinel . VALUE1 , field2__day = sentinel . VALUE2 ) #NEWLINE# actual = ( ( field1 . day == sentinel . VALUE1 ) & ( field2 . day == sentinel . VALUE2 ) ) #NEWLINE# self . assertEqual ( actual , expected )