#NEWLINE# def test_isnull_lookup( self ) : #NEWLINE# #INDENT# qs = TestModel . es . filter ( email__isnull = False ) . deserialize ( ) #NEWLINE# self . assertEqual ( qs . count ( ) , 1 ) #NEWLINE# self . assertTrue ( ( self . t1 in qs ) ) #NEWLINE# qs = TestModel . es . exclude ( email__isnull = False ) . deserialize ( ) #NEWLINE# self . assertEqual ( qs . count ( ) , 3 ) #NEWLINE# self . assertFalse ( ( qs . t1 in qs ) )