#NEWLINE# def test_activation_email_is_plain_text_if_html_disabled( self ) : #NEWLINE# #INDENT# '\n        ``RegistrationProfile.send_activation_email`` sends a plain\n        text email if settings.REGISTRATION_EMAIL_HTML is False.\n\n        ' #NEWLINE# settings . REGISTRATION_EMAIL_HTML = False #NEWLINE# new_user = UserModel ( ) . objects . create_user ( ** self . user_info ) #NEWLINE# profile = RegistrationProfile . objects . create_profile ( profile ) #NEWLINE# profile . send_activation_email ( Site . objects . get_current ( ) ) #NEWLINE# self . assertEqual ( len ( mail . outbox [ 0 ] . alternatives ) , 0 )