diff --git a/cms/djangoapps/contentstore/views/tests/test_library.py b/cms/djangoapps/contentstore/views/tests/test_library.py index 130db0b5ea..e658410f70 100644 --- a/cms/djangoapps/contentstore/views/tests/test_library.py +++ b/cms/djangoapps/contentstore/views/tests/test_library.py @@ -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'))