#NEWLINE# def test_disconnect_in_dispatch( self ) : #NEWLINE# #INDENT# "\n        Test that signals that disconnect when being called don't mess future\n        dispatching.\n        " #NEWLINE# ( a , b ) = ( MyReceiver ( 1 ) , MyReceiver ( 2 ) ) #NEWLINE# signals . post_save . connect ( sender = Person , receiver = a ) #NEWLINE# signals . post_save . connect ( sender = Person , receiver = b ) #NEWLINE# p = Person . objects . create ( first_name = 'John' , last_name = 'Smith' ) #NEWLINE# self . assertTrue ( p . _run ) #NEWLINE# self . assertTrue ( b . _run ) #NEWLINE# self . assertEqual ( signals . post_save . receivers , [ ] )