#NEWLINE# def test_resend_activation_email_activated_user( self ) : #NEWLINE# #INDENT# "\n        Test the scenario where user tries to resend activation code\n        to the already activated user's email\n        " #NEWLINE# user = RegistrationProfile . objects . create_inactive_user ( site = Site . objects . get_current ( ) , send_email = False , ** self . user_info ) #NEWLINE# profile = RegistrationProfile . objects . get ( user = user ) #NEWLINE# activated = RegistrationProfile . objects . activate_user ( profile . activation_key ) #NEWLINE# self . assertTrue ( profile . is_active ) #NEWLINE# self . assertFalse ( RegistrationProfile . objects . resend_activation_mail ( email = self . user_info [ 'email' ] , site = Site . objects . get_current ( ) ) ) #NEWLINE# self . assertEqual ( len ( mail . outbox ) , 0 )