PROD-662
Photo verification Fixing python3
This commit is contained in:
@@ -328,7 +328,7 @@ class UnitTestLibraries(CourseTestCase):
|
||||
response = self.client.get(manage_users_url)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
# extra_user has not been assigned to the library so should not show up in the list:
|
||||
self.assertNotIn(binary_type(extra_user.username), response.content)
|
||||
self.assertNotIn(extra_user.username, response.content.decode('utf-8'))
|
||||
|
||||
# Now add extra_user to the library:
|
||||
user_details_url = reverse_course_url(
|
||||
@@ -341,4 +341,4 @@ class UnitTestLibraries(CourseTestCase):
|
||||
# Now extra_user should apear in the list:
|
||||
response = self.client.get(manage_users_url)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertIn(binary_type(extra_user.username), response.content)
|
||||
self.assertIn(extra_user.username, response.content.decode('utf-8'))
|
||||
|
||||
Reference in New Issue
Block a user