Exemple #1
0
 def test_with_comment(self, mock_send_mail_user):
     _notify_password_change('ckuehl', comment='HERPDERP')
     mock_send_mail_user.assert_called_once_with('ckuehl', mock.ANY, mock.ANY)
     assert '\nHERPDERP\n' in mock_send_mail_user.call_args_list[0][0][2]
Exemple #2
0
 def test_without_comment(self, mock_send_mail_user):
     _notify_password_change('ckuehl')
     mock_send_mail_user.assert_called_once_with('ckuehl', mock.ANY, mock.ANY)
Exemple #3
0
 def test_without_comment(self, mock_send_mail_user):
     _notify_password_change('ckuehl')
     mock_send_mail_user.assert_called_once_with('ckuehl', mock.ANY,
                                                 mock.ANY)
Exemple #4
0
 def test_with_comment(self, mock_send_mail_user):
     _notify_password_change('ckuehl', comment='HERPDERP')
     mock_send_mail_user.assert_called_once_with('ckuehl', mock.ANY,
                                                 mock.ANY)
     assert '\nHERPDERP\n' in mock_send_mail_user.call_args_list[0][0][2]
 def test_with_comment(self, mock_send_mail_user):
     _notify_password_change("ckuehl", comment="HERPDERP")
     mock_send_mail_user.assert_called_once_with("ckuehl", mock.ANY, mock.ANY)
     assert "\nHERPDERP\n" in mock_send_mail_user.call_args_list[0][0][2]