def test_email_found_custom_from(self):
        response = self.client.post('/password_reset_from_email/', {'email': 'staffmember@example.com'})
        self.assertEqual(response.status_code, 302)
        self.assertEqual(len(mail.outbox), 1)
        self.assertEqual("staffmember@example.com", mail.outbox[0].from_email)
Email is sent if a valid email address is provided for password reset when a custom from_email is provided.
dataset/ETHPy150Open splunk/splunk-webframework/contrib/django/django/contrib/auth/tests/views.py/PasswordResetTest.test_email_found_custom_from