#NEWLINE# def test_case_insensitive( self ) : #NEWLINE# #INDENT# 'Make sure that we do case insensitive comparisons.' #NEWLINE# b = BuildingSnapshot . objects . create ( source_type = 3 ) #NEWLINE# b . extra_data = { #NEWLINE# #INDENT# 'thing' : 'vAluE' , #NEWLINE# #UNINDENT# } #NEWLINE# b . save ( ) #NEWLINE# no_matches_count = BuildingSnapshot . objects . all ( ) . json_query ( 'thing' , value = 'value' ) . count ( ) #NEWLINE# self . assertEqual ( no_matches_count , 0 ) #NEWLINE# matches_count = BuildingSnapshot . objects . all ( ) . json_query ( 'thing' , value = 'value' , case_insensitive = True ) . count ( ) #NEWLINE# self . assertEqual ( matches_count , 1 )