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_without_comment(self, mock_send_mail_user): _notify_password_change('ckuehl') mock_send_mail_user.assert_called_once_with('ckuehl', mock.ANY, mock.ANY)
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]