Photo verification Fixing python3
This commit is contained in:
Awais Qureshi
2019-09-08 20:35:52 +05:00
parent e27439772d
commit b8b6dc4883

View File

@@ -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'))