Fixing python3
This commit is contained in:
Awais Qureshi
2019-09-11 17:29:46 +05:00
parent bcad9519bc
commit e4b737cf97

View File

@@ -689,7 +689,7 @@ class MiscCourseTests(ContentStoreTestCase):
resp = self.client.get_html(get_url('container_handler', self.vert_loc) + '?action=' + malicious_code)
self.assertEqual(resp.status_code, 200)
# Test that malicious code does not appear in html
self.assertNotIn(malicious_code, resp.content)
self.assertNotIn(malicious_code, resp.content.decode('utf-8'))
def test_advanced_components_in_edit_unit(self):
# This could be made better, but for now let's just assert that we see the advanced modules mentioned in the