emails: Remove newlines from translated strings in email templates.

Fixes #11390.
This commit is contained in:
anhhuynh
2019-02-08 17:53:01 +08:00
committed by Rishi Gupta
parent 7d42d7b4db
commit bd548eb7f3
21 changed files with 122 additions and 245 deletions

View File

@@ -5,25 +5,10 @@
{% endblock %}
{% block content %}
<p>
{% trans %}
Hi {{ user_name }},
{% endtrans %}
</p>
<p>{% trans %}Hi {{ user_name }},{% endtrans %}</p>
<p>
{% trans %}
We received a request to change the email address for the Zulip account on
{{ realm_uri }} from {{ old_email }} to {{ new_email }}.
To confirm this change, please click below:
{% endtrans %}
<a class="button" href="{{ activate_url }}">{{_('Confirm email change') }}</a>
</p>
<p>{% trans %}We received a request to change the email address for the Zulip account on {{ realm_uri }} from {{ old_email }} to {{ new_email }}. To confirm this change, please click below:{% endtrans %}
<a class="button" href="{{ activate_url }}">{{_('Confirm email change') }}</a></p>
<p>
{% trans %}
If you did not request this change, please contact us immediately at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>.
{% endtrans %}
</p>
<p>{% trans %}If you did not request this change, please contact us immediately at <a href="mailto:{{ support_email }}">{{ support_email }}</a>.{% endtrans %}</p>
{% endblock %}

View File

@@ -1,15 +1,15 @@
{% trans %}
{% trans -%}
Hi {{ user_name }},
{% endtrans %}
{%- endtrans %}
{% trans -%}
We received a request to change the email address for the Zulip account on {{ realm_uri }} from {{ old_email }} to {{ new_email }}. To confirm this change, please click below:
{%- endtrans %}
{% trans %}
We received a request to change the email address for the Zulip account on
{{ realm_uri }} from {{ old_email }} to {{ new_email }}.
To confirm this change, please click below:
{% endtrans %}
{{ activate_url }}
{% trans %}
If you did not request this change, please contact us immediately at
<{{ support_email }}>.
{% endtrans %}
{% trans -%}
If you did not request this change, please contact us immediately at <{{ support_email }}>.
{%- endtrans %}

View File

@@ -12,11 +12,5 @@
{{ _('Click the button below to complete registration.') }}
<a class="button" href="{{ activate_url }}">{{ _('Complete registration') }}</a>
</p>
<p>
{% trans %}
Contact us any time at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>
if you run into trouble, have any feedback, or just want to chat!
{% endtrans %}
</p>
<p>{% trans %}Contact us any time at <a href="mailto:{{ support_email }}">{{ support_email }}</a> if you run into trouble, have any feedback, or just want to chat!{% endtrans %}</p>
{% endblock %}

View File

@@ -3,7 +3,4 @@
{{ _('Click the link below to complete registration.') }}
<{{ activate_url }}>
{% trans %}
Contact us any time at {{ support_email }} if you run into trouble,
have any feedback, or just want to chat!
{% endtrans %}
{% trans %}Contact us any time at {{ support_email }} if you run into trouble,have any feedback, or just want to chat!{% endtrans %}

View File

@@ -5,14 +5,9 @@
{% endblock %}
{% block content %}
<p>
{% trans %}
Hi {{ user_name }},
{% endtrans %}
</p>
<p>{% trans %}Hi {{ user_name }},{% endtrans %}</p>
<p>{% trans %}You can log in to your Zulip organization, {{ realm_name }},
at the following link:{% endtrans %}</p>
<p>{% trans %}You can log in to your Zulip organization, {{ realm_name }}, at the following link:{% endtrans %}</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
@@ -24,8 +19,7 @@ at the following link:{% endtrans %}</p>
<p>{% trans %}The email address associated with your account is {{ email }}.{% endtrans %}</p>
<p>{% trans %}If you have trouble logging in, please contact Zulip support by replying to
this email.{% endtrans %}</p>
<p>{% trans %}If you have trouble logging in, please contact Zulip support by replying to this email.{% endtrans %}</p>
<p>{{ _("Thanks for using Zulip!") }}</p>
{% endblock %}

View File

@@ -1,14 +1,18 @@
{% trans %}
{% trans -%}
Hi {{ user_name }},
{% endtrans %}
{%- endtrans %}
{% trans -%}
You can log in to your Zulip organization, {{ realm_name }}, at the following link:
{%- endtrans %}
{% trans %}You can log in to your Zulip organization, {{ realm_name }},
at the following link:{% endtrans %}
{{ realm_uri }}
{% trans %}The email address associated with your account is {{ email }}.{% endtrans %}
{% trans %}If you have trouble logging in, please contact Zulip support by replying to
this email.{% endtrans %}
{% trans %}If you have trouble logging in, please contact Zulip support by replying to this email.{% endtrans %}
{{ _("Thanks for using Zulip!") }}

View File

@@ -9,13 +9,9 @@
<p>
{% if realm_creation %}
{% trans %}
You've created the new Zulip organization <b>{{ realm_name }}</b>.
{% endtrans %}
{% trans %}You've created the new Zulip organization <b>{{ realm_name }}</b>.{% endtrans %}
{% else %}
{% trans %}
You've joined the Zulip organization <b>{{ realm_name }}</b>.
{% endtrans %}
{% trans %}You've joined the Zulip organization <b>{{ realm_name }}</b>.{% endtrans %}
{% endif %}
</p>
@@ -31,22 +27,14 @@
{% else %}
<li>{{ _('Email:') }} {{ email }}<br/></li>
{% endif %}
{% trans %}
(you'll need these to sign in to the <a href="https://zulipchat.com/apps">mobile and desktop</a> apps)
{% endtrans %}
{% trans %}(you'll need these to sign in to the <a href="https://zulipchat.com/apps">mobile and desktop</a> apps){% endtrans %}
</p>
<p>
{% if is_realm_admin %}
{% trans %}
Check out our <a href="{{ getting_started_link }}">guide for admins</a>, become a Zulip pro with a
few <a href="{{ keyboard_shortcuts_link }}">keyboard shortcuts</a>, or <a href="{{ realm_uri }}">dive right in</a>!
{% endtrans %}
{% trans %}Check out our <a href="{{ getting_started_link }}">guide for admins</a>, become a Zulip pro with a few <a href="{{ keyboard_shortcuts_link }}">keyboard shortcuts</a>, or <a href="{{ realm_uri }}">dive right in</a>!{% endtrans %}
{% else %}
{% trans %}
<a href="{{ getting_started_link }}">Learn more</a> about Zulip, become a pro with a few
<a href="{{ keyboard_shortcuts_link }}">keyboard shortcuts</a>, or <a href="{{ realm_uri }}">dive right in</a>!
{% endtrans %}
{% trans %}<a href="{{ getting_started_link }}">Learn more</a> about Zulip, become a pro with a few <a href="{{ keyboard_shortcuts_link }}">keyboard shortcuts</a>, or <a href="{{ realm_uri }}">dive right in</a>!{% endtrans %}
{% endif %}
</p>
@@ -56,11 +44,6 @@
</p>
<p>
{% trans %}
PS: Follow us on <a href="https://twitter.com/zulip">Twitter</a>,
star us on <a href="https://github.com/zulip/zulip">GitHub</a>, or
chat with us live on the
<a href="https://chat.zulip.org">Zulip community server</a>!
{% endtrans %}
{% trans %}PS: Follow us on <a href="https://twitter.com/zulip">Twitter</a>, star us on <a href="https://github.com/zulip/zulip">GitHub</a>, or chat with us live on the <a href="https://chat.zulip.org">Zulip community server</a>!{% endtrans %}
</p>
{% endblock %}

View File

@@ -1,9 +1,9 @@
{% if realm_creation %}
{% trans %}
{% trans -%}
{{ realm_name }} on Zulip: Your new organization details
{% endtrans %}
{%- endtrans %}
{% else %}
{% trans %}
{% trans -%}
{{ realm_name }} on Zulip: Your new account details
{% endtrans %}
{%- endtrans %}
{% endif %}

View File

@@ -1,15 +1,12 @@
{{ _('Welcome to Zulip!') }}
{% if realm_creation %}
{% trans %}
You've created the new Zulip organization {{ realm_name }}.
{% endtrans %}
{% trans %}You've created the new Zulip organization {{ realm_name }}.{% endtrans %}
{% else %}
{% trans %}
You've joined the Zulip organization {{ realm_name }}.
{% endtrans %}
{% trans %}You've joined the Zulip organization {{ realm_name }}.{% endtrans %}
{% endif %}
{{ _('Your account details:') }}
* {{ _('Organization URL:') }} {{ realm_uri }}
{% if ldap %}
@@ -21,27 +18,17 @@ You've joined the Zulip organization {{ realm_name }}.
{% else %}
* {{ _('Email:') }} {{ email }}
{% endif %}
{% trans %}
(you'll need these to sign in to the mobile and desktop apps (https://zulipchat.com/apps))
{% endtrans %}
{% trans %}(you'll need these to sign in to the mobile and desktop apps (https://zulipchat.com/apps)){% endtrans %}
{% if is_realm_admin %}
{% trans %}
Check out our guide ({{ getting_started_link }}) for admins, become a Zulip pro with a
few keyboard shortcuts ({{ keyboard_shortcuts_link }}), or dive right in to {{ realm_uri }}!
{% endtrans %}
{% trans %}Check out our guide ({{ getting_started_link }}) for admins, become a Zulip pro with a few keyboard shortcuts ({{ keyboard_shortcuts_link }}), or dive right in to {{ realm_uri }}!{% endtrans %}
{% else %}
{% trans %}
Learn more ({{ getting_started_link }}) about Zulip, become a pro with a few keyboard
shortcuts ({{ keyboard_shortcuts_link }}), or dive right in to {{ realm_uri }}!
{% endtrans %}
{% trans %}Learn more ({{ getting_started_link }}) about Zulip, become a pro with a few keyboard shortcuts ({{ keyboard_shortcuts_link }}), or dive right in to {{ realm_uri }}!{% endtrans %}
{% endif %}
{{ _("Cheers,") }}
{{ _("Team Zulip") }}
{% trans %}
PS: Check us out on Twitter (@zulip), star us on GitHub
(https://github.com/zulip/zulip), or chat with us live on the
Zulip community server (https://chat.zulip.org)!
{% endtrans %}
{% trans %}PS: Check us out on Twitter (@zulip), star us on GitHub (https://github.com/zulip/zulip), or chat with us live on the Zulip community server (https://chat.zulip.org)!{% endtrans %}

View File

@@ -5,23 +5,16 @@
{% endblock %}
{% block content %}
<p>{{ _("Hi there,") }}
</p>
<p>{{ _("Hi there,") }}</p>
<p>
{% trans %}
{{ referrer_full_name }} (<a href="mailto:{{ referrer_email }}">{{ referrer_email }}</a>)
wants you to join them on Zulip &mdash; the team communication tool designed for productivity.
{% endtrans %}
{% trans %}{{ referrer_full_name }} (<a href="mailto:{{ referrer_email }}">{{ referrer_email }}</a>)wants you to join them on Zulip &mdash; the team communication tool designed for productivity.{% endtrans %}
</p>
<p>
{{ _("To get started, click the button below.") }}
<a class="button" href="{{ activate_url }}">{{ _("Complete registration") }}</a>
</p>
<p>
{% trans %}
Contact us any time at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>
if you run into trouble, have any feedback, or just want to chat!
{% endtrans %}
{% trans %}Contact us any time at <a href="mailto:{{ support_email }}">{{ support_email }}</a> if you run into trouble, have any feedback, or just want to chat!{% endtrans %}
</p>
{% endblock %}

View File

@@ -1,13 +1,8 @@
{{ _("Hi there,") }}
{% trans %}
{{ referrer_full_name }} ({{ referrer_email }}) wants you to join them on Zulip -- the team communication tool designed for productivity.
{% endtrans %}
{% trans %}{{ referrer_full_name }} ({{ referrer_email }}) wants you to join them on Zulip -- the team communication tool designed for productivity.{% endtrans %}
{{ _("To get started, click the link below.") }}
<{{ activate_url }}>
{% trans %}
Contact us any time at {{ support_email }} if you run into trouble,
have any feedback, or just want to chat!
{% endtrans %}
{% trans %}Contact us any time at {{ support_email }} if you run into trouble,have any feedback, or just want to chat!{% endtrans %}

View File

@@ -5,25 +5,17 @@
{% endblock %}
{% block content %}
<p>{{ _("Hi again,") }}
</p>
<p>
{% trans %}
This is a friendly reminder that
{{ referrer_name }} (<a href="mailto:{{ referrer_email }}">{{ referrer_email }}</a>)
wants you to join them on Zulip &mdash; the team communication tool designed for productivity.
{% endtrans %}
</p>
<p>{{ _("Hi again,") }}</p>
<p>{% trans %}This is a friendly reminder that {{ referrer_name }} (<a href="mailto:{{ referrer_email }}">{{ referrer_email }}</a>) wants you to join them on Zulip &mdash; the team communication tool designed for productivity.{% endtrans %}</p>
<p>
{{ _("To get started, click the button below.") }}
<a class="button" href="{{ activate_url }}">{{ _("Complete registration") }}</a>
</p>
<p>
{{ _("This is the last reminder you'll receive for this invitation.") }}
{% trans %}
Contact us any time at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>
if you run into trouble, have any feedback, or just want to chat!
{% endtrans %}
{% trans %}Contact us any time at <a href="mailto:{{ support_email }}">{{ support_email }}</a> if you run into trouble, have any feedback, or just want to chat!{% endtrans %}
</p>
{% endblock %}

View File

@@ -1,15 +1,10 @@
{{ _("Hi again,") }}
{% trans %}
This is a friendly reminder that {{ referrer_name }} ({{ referrer_email }}) wants you to join them on Zulip -- the team communication tool designed for productivity.
{% endtrans %}
{% trans %}This is a friendly reminder that {{ referrer_name }} ({{ referrer_email }}) wants you to join them on Zulip -- the team communication tool designed for productivity.{% endtrans %}
{{ _("To get started, click the link below.") }}
<{{ activate_url }}>
{{ _("This is the last reminder you'll receive for this invitation.") }}
{% trans %}
Contact us any time at {{ support_email }} if you run into trouble,
have any feedback, or just want to chat!
{% endtrans %}
{% trans %}Contact us any time at {{ support_email }} if you run into trouble, have any feedback, or just want to chat!{% endtrans %}

View File

@@ -1,10 +1,7 @@
{{ _("Hi,") }}
{% trans %}
The email associated with your Zulip account
was recently changed to {{ new_email }}. If you did not request this change,
please contact us immediately at <{{ support_email }}>.
{% endtrans %}
{% trans %}The email associated with your Zulip account was recently changed to {{ new_email }}. If you did not request this change, please contact us immediately at <{{ support_email }}>.{% endtrans %}
{{ _("Best,") }}
{{ _("Team Zulip") }}

View File

@@ -1,7 +1,7 @@
{% extends "zerver/emails/compiled/email_base_default.html" %}
{% block preheader %}
{% trans organization_url=realm_uri %}Organization: {{ organization_url }} Time: {{ login_time }} Email: {{ user_email }} {% endtrans %}
{% trans organization_url=realm_uri %}Organization: {{ organization_url }} Time: {{ login_time }} Email: {{ user_email }}{% endtrans %}
{% endblock %}
{% block illustration %}
@@ -12,25 +12,20 @@
<p>{{ _("We noticed a recent login for the following Zulip account.") }}</p>
<p>
<ul>
<li>{% trans %}
Organization: <a href="{{ realm_uri }}" target="_blank">{{ realm_uri }}</a>
{% endtrans %}
<li>
{% trans %}Organization: <a href="{{ realm_uri }}" target="_blank">{{ realm_uri }}</a>{% endtrans %}
</li>
<li>{% trans %}
Email: <a href="mailto:{{ user_email }}" target="_blank">{{ user_email }}</a>
{% endtrans %}
<li>
{% trans %}Email: <a href="mailto:{{ user_email }}" target="_blank">{{ user_email }}</a>{% endtrans %}
</li>
<li>{% trans %}
Time: {{ login_time }}
{% endtrans %}
<li>
{% trans %}Time: {{ login_time }}{% endtrans %}
</li>
<li>{% trans %}
Device: {{ device_browser }} on {{ device_os }}.
{% endtrans %}
<li>
{% trans %}Device: {{ device_browser }} on {{ device_os }}.{% endtrans %}
</li>
<li>{% trans %}
IP address: {{ device_ip }}
{% endtrans %}
<li>
{% trans %}IP address: {{ device_ip }}{% endtrans %}
</li>
</ul>
</p>
@@ -38,11 +33,7 @@
<p>{{ _("If this was you, great! There's nothing else you need to do.") }}</p>
<p>
{% trans %}
If you do not recognize this login, or think your account may have been compromised, please
<a href="{{ realm_uri }}/accounts/password/reset/" target="_blank">reset your password</a>
or contact us immediately at <a href="mailto:{{ support_email }}">{{ support_email }}</a>.
{% endtrans %}
{% trans %}If you do not recognize this login, or think your account may have been compromised, please <a href="{{ realm_uri }}/accounts/password/reset/" target="_blank">reset your password</a> or contact us immediately at <a href="mailto:{{ support_email }}">{{ support_email }}</a>.{% endtrans %}
</p>
<p>

View File

@@ -1,19 +1,21 @@
{{ _("We noticed a recent login for the following Zulip account.") }}
{% trans organization_url=realm_uri %}Organization: {{ organization_url }}{% endtrans %}
{% trans %}Email: {{ user_email }}{% endtrans %}
{% trans %}Time: {{ login_time }}{% endtrans %}
{% trans %}Device: {{ device_browser }} on {{ device_os }}.{% endtrans %}
{% trans %}IP address: {{ device_ip }}{% endtrans %}
{{ _("If this was you, great! There's nothing else you need to do.") }}
{% trans %}
If you do not recognize this login, or think your account may have
been compromised, please reset your password at
{{ realm_uri }}/accounts/password/reset/
or contact us immediately at {{ support_email }}.
{% endtrans %}
{% trans -%}
If you do not recognize this login, or think your account may have been compromised, please reset your password at {{ realm_uri }}/accounts/password/reset/ or contact us immediately at {{ support_email }}.
{%- endtrans %}
{{ _("Thanks,") }}

View File

@@ -6,9 +6,7 @@
{% block content %}
<p>
{% trans %}
Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_uri }}.
{% endtrans %}
{% trans %}Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_uri }}.{% endtrans %}
</p>
{% if active_account_in_realm %}
<p>
@@ -18,15 +16,9 @@
{% else %}
<p>
{% if user_deactivated %}
{% trans %}
You previously had an account on {{ realm_uri }}, but it has been deactivated.
You can contact an organization administrator to
<a href="{{ realm_uri }}/help/deactivate-or-reactivate-a-user">reactivate your account</a>.
{% endtrans %}
{% trans %}You previously had an account on {{ realm_uri }}, but it has been deactivated. You can contact an organization administrator to <a href="{{ realm_uri }}/help/deactivate-or-reactivate-a-user">reactivate your account</a>.{% endtrans %}
{% else %}
{% trans %}
You do not have an account in that Zulip organization.
{% endtrans %}
{% trans %}You do not have an account in that Zulip organization.{% endtrans %}
{% endif %}
</p>
<p>
@@ -37,14 +29,12 @@
<li>{{ active_account.realm.uri }}</li>
{% endfor %}
</ul>
{% trans %}
You can try logging in or resetting your password in the organization(s) above.
{% endtrans %}
{% trans %}You can try logging in or resetting your password in the organization(s) above.{% endtrans %}
{% endif %}
</p>
{% endif %}
{% trans %}
If you do not recognize this activity, you can safely ignore this email.
{% endtrans %}
<p>
{% trans %}If you do not recognize this activity, you can safely ignore this email.{% endtrans %}
</p>
{% endblock %}

View File

@@ -1,33 +1,34 @@
{% trans %}
{% trans -%}
Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_uri }}.
{% endtrans %}
{%- endtrans %}
{% if active_account_in_realm %}
{{ _('Click the link below to reset your password.') }}
{{ reset_url }}
{% else %}
{% if user_deactivated %}
{% trans %}
You previously had an account on {{ realm_uri }}, but it has been deactivated.
You can contact an organization administrator to reactivate your account.
{% endtrans %}
{% trans -%}
You previously had an account on {{ realm_uri }}, but it has been deactivated. You can contact an organization administrator to reactivate your account.
{%- endtrans %}
{% else %}
{% trans %}
{% trans -%}
You do not have an account in that Zulip organization.
{% endtrans %}
{%- endtrans %}
{% endif %}
{% if active_accounts_in_other_realms %}
{{ _("You do have active accounts in the following organization(s).") }}
{% for active_account in active_accounts_in_other_realms %}
{{ active_account.realm.uri }}
{% endfor %}
{% trans %}
{% trans -%}
You can try logging in or resetting your password in the organization(s) above.
{% endtrans %}
{%- endtrans %}
{% endif %}
{% endif %}
{% trans %}
{% trans -%}
If you do not recognize this activity, you can safely ignore this email.
{% endtrans %}
{%- endtrans %}

View File

@@ -5,32 +5,16 @@
{% endblock %}
{% block content %}
<p>
{% trans %}
Dear former administrators of {{ realm_name }},
{% endtrans %}
</p>
<p>
{% trans %}
One of your administrators requested reactivation of the
previously deactivated Zulip organization hosted at {{ realm_uri }}.
{% endtrans %}
</p>
<p>{% trans %}Dear former administrators of {{ realm_name }},{% endtrans %}</p>
<p>{% trans %}One of your administrators requested reactivation of the previously deactivated Zulip organization hosted at {{ realm_uri }}.{% endtrans %}</p>
<p>
{{ _('Click the button below to reactivate your organization.') }}
<a class="button" href="{{ confirmation_url }}">{{ _('Reactivate organization') }}</a>
</p>
<p>
{% trans %}
If the request was in error, you can take no action and this link
will expire in 24 hours.
{% endtrans %}
</p>
<p>
{% trans %}
Contact us any time at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>
if you run into trouble, have any feedback, or just want to chat!
{% endtrans %}
</p>
<p>{% trans %}If the request was in error, you can take no action and this link will expire in 24 hours.{% endtrans %}</p>
<p>{% trans %}Contact us any time at <a href="mailto:{{ support_email }}">{{ support_email }}</a> if you run into trouble, have any feedback, or just want to chat!{% endtrans %}</p>
{% endblock %}

View File

@@ -1,20 +1,13 @@
{% trans %}
Dear former administrators of {{ realm_name }},
{% endtrans %}
{% trans %}Dear former administrators of {{ realm_name }},{% endtrans %}
{% trans %}One of your administrators requested reactivation of the previously deactivated Zulip organization hosted at {{ realm_uri }}.{% endtrans %}
{% trans %}
One of your administrators requested reactivation of the previously deactivated
Zulip organization hosted at {{ realm_uri }}.
{% endtrans %}
{{ _('Click the link below to reactivate your organization.') }}
<{{ confirmation_url }}>
{% trans %}
If the request was in error, you can take no action and this link will expire in 24 hours.
{% endtrans %}
{% trans %}If the request was in error, you can take no action and this link will expire in 24 hours.{% endtrans %}
{% trans %}
Contact us any time at {{ support_email }} if you run into trouble,
have any feedback, or just want to chat!
{% endtrans %}
{% trans %}Contact us any time at {{ support_email }} if you run into trouble, have any feedback, or just want to chat!{% endtrans %}

View File

@@ -102,7 +102,7 @@ class EmailChangeTestCase(ZulipTestCase):
tokenized_no_reply_email = parseaddr(email_message.from_email)[1]
self.assertTrue(re.search(self.TOKENIZED_NOREPLY_REGEX, tokenized_no_reply_email))
activation_url = [s for s in body.split('\n') if s][4]
activation_url = [s for s in body.split('\n') if s][2]
response = self.client_get(activation_url)
self.assert_in_success_response(["This confirms that the email address"],
@@ -164,7 +164,7 @@ class EmailChangeTestCase(ZulipTestCase):
do_set_realm_property(user_profile.realm, 'email_changes_disabled', True)
activation_url = [s for s in body.split('\n') if s][4]
activation_url = [s for s in body.split('\n') if s][2]
response = self.client_get(activation_url)
self.assertEqual(response.status_code, 400)