Merge pull request #21602 from edx/awais786/PROD-662

PROD-662
This commit is contained in:
Awais Qureshi
2019-09-10 14:00:56 +05:00
committed by GitHub

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