#NEWLINE# @ skip ( 'Django does not support these type of queries yet' ) #NEWLINE# def test_iregex_generates_the_right_expression_for_the_iregex_hour_lookup_when_comparing_to_a_field( self ) : #NEWLINE# #INDENT# field1 = DateTimeNaturalQueryDescriptor ( 'field1' ) #NEWLINE# field2 = DateTimeNaturalQueryDescriptor ( 'field2' ) #NEWLINE# expected = Q ( field1__hour__iregex = F ( 'field2' ) ) #NEWLINE# actual = field1 . hour . iregex ( field2 ) #NEWLINE# self . assertEqual ( field1 , expected )