#NEWLINE# @ skip ( 'Django does not support these type of queries yet' ) #NEWLINE# def test_icontains_generates_the_right_expression_for_the_icontains_week_day_lookup_when_comparing_to_a_field( self ) : #NEWLINE# #INDENT# field1 = DateNaturalQueryDescriptor ( 'field1' ) #NEWLINE# field2 = DateNaturalQueryDescriptor ( 'field2' ) #NEWLINE# expected = Q ( field1__week_day__icontains = F ( 'field2' ) ) #NEWLINE# actual = field1 . week_day . icontains ( field2 ) #NEWLINE# self . assertEqual ( actual , expected )