Ejemplo n.º 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]
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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]
Ejemplo n.º 5
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]