Python 3: multi-line regex replacement of assertIn and assertNotIn

This commit is contained in:
Nimisha Asthagiri
2019-09-29 18:27:52 -04:00
parent 4914c42364
commit 8cfc33c0f1
11 changed files with 80 additions and 83 deletions

View File

@@ -121,10 +121,10 @@ class HelperMixin(object):
def assert_json_failure_response_is_missing_social_auth(self, response):
"""Asserts failure on /login for missing social auth looks right."""
self.assertEqual(403, response.status_code)
self.assertIn(
self.assertContains(
response,
u"successfully signed in to your %s account, but this account isn't linked" % self.provider.name,
response.content.decode(response.charset)
status_code=403,
)
def assert_json_failure_response_is_username_collision(self, response):