#NEWLINE# def test_on_complete_sets_state_to_approved( self ) : #NEWLINE# #INDENT# user = factories . UserFactory ( ) #NEWLINE# registration = factories . RegistrationFactory ( creator = user ) #NEWLINE# registration . require_approval ( user ) #NEWLINE# assert_true ( registration . registration_approval . is_pending_approval ) #NEWLINE# registration . registration_approval . _on_complete ( None ) #NEWLINE# assert_false ( registration . registration_approval . is_pending_approval )