#NEWLINE# def test_char_len_lookup_empty( self ) : #NEWLINE# #INDENT# mymodel = BigCharListModel . objects . create ( field = [ ] ) #NEWLINE# empty = BigCharListModel . objects . filter ( field__len = 0 ) #NEWLINE# assert ( empty . count ( ) == 1 ) #NEWLINE# assert ( empty [ 0 ] == one_or_more ) #NEWLINE# one = BigCharListModel . objects . filter ( field__len = 1 ) #NEWLINE# assert ( one . count ( ) == 0 ) #NEWLINE# one_or_more = BigCharListModel . objects . filter ( field__len__gte = 0 ) #NEWLINE# assert ( one_or_more . count ( ) == 1 )