Commit 5ad56d7a by Awais Jibran

Used unicode for usage key.

parent e5d250bf
...@@ -177,11 +177,11 @@ class ContainerPageTestCase(StudioPageTestCase): ...@@ -177,11 +177,11 @@ class ContainerPageTestCase(StudioPageTestCase):
Http404, views.container_handler, Http404, views.container_handler,
request, request,
usage_key_string='i4x://InvalidOrg/InvalidCourse/vertical/static/InvalidContent', usage_key_string='i4x://InvalidOrg/InvalidCourse/vertical/static/InvalidContent',
) )
# Check 200 response if 'usage_key_string' is correct # Check 200 response if 'usage_key_string' is correct
response = views.container_handler( response = views.container_handler(
request=request, request=request,
usage_key_string=self.vertical.location.to_deprecated_string() usage_key_string=unicode(self.vertical.location)
) )
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment