#NEWLINE# def test_setnull_from_child( self ) : #NEWLINE# #INDENT# a = create_a ( 'child_setnull' ) #NEWLINE# a . child_setnull . delete ( ) #NEWLINE# self . assertFalse ( R . objects . filter ( pk = a . child_setnull_id ) . exists ( ) ) #NEWLINE# a = A . objects . get ( pk = a . pk ) #NEWLINE# self . assertEqual ( None , a . child_setnull )