I just replaced single quotes with that special character from response
string using replace method of string,

‪On Sat, Feb 8, 2020 at 8:41 PM ‫אורי‬‎ <u...@speedy.net> wrote:‬

> For example in this case:
>
> if (django.VERSION >= (3, 0)):
>     ...
> else:
>     ...
> אורי
> u...@speedy.net
>
>
> On Sat, Feb 8, 2020 at 3:48 PM One Above All <
> the.one.above.all.ti...@gmail.com> wrote:
>
>> i am working on a project which is adding support for Django 3.0. While
>> doing so, I came across ticket # 30400
>> https://code.djangoproject.com/ticket/30400 after which contractions
>> were rewritten. I am writing a test which should work with both Django 3.0
>> and 2.2. I have to assert error_messages
>> in django.contrib.auth.forms.SetPasswordForm like below
>>
>> self.assertIn("The two password fields didn’t match.",
>>> str(response.data['new_password2']))
>>
>>
>> How can I make this work in both versions of Django ?
>>
>> Thanks and Regards,
>> Gagan Deep
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/18f30e79-1c67-46b6-9482-d6f18a109887%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/18f30e79-1c67-46b6-9482-d6f18a109887%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABD5YeECcxfDMWZ8tdwCUebQZz%2BWN--Os28Ce7pHg7SdCfrxNg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABD5YeECcxfDMWZ8tdwCUebQZz%2BWN--Os28Ce7pHg7SdCfrxNg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOX69xrBBJft_JVJrTuxmvCARTBY8Hck98TaHt4iPbV9BbYtXA%40mail.gmail.com.

Reply via email to