'Test the PasswordResetForm.save() method with no html_email_template_name
parameter passed in.
Test to ensure original behavior is unchanged after the parameter was added.'

def test_save_plaintext_email(self):

    (user, username, email) = self.create_dummy_user()
    form = PasswordResetForm({'email': email})
    self.assertTrue(form.is_valid())
    form.save()
    self.assertEqual(len(mail.outbox), 1)
    message = mail.outbox[0].message()
    self.assertFalse(message.is_multipart())
    self.assertEqual(message.get_content_type(), 'text/plain')
    self.assertEqual(message.get('subject'), 'Custom    password    reset    on    example.com')
    self.assertEqual(len(mail.outbox[0].alternatives), 0)
    self.assertEqual(message.get_all('to'), [email])
    self.assertTrue(re.match('^http://example.com/reset/[\\w+/-]', message.get_payload()))
