From 0e0dfd22cf37ae6691ea9f4c09461fccebb526d2 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Mon, 1 Jul 2013 16:15:26 -0400 Subject: [PATCH] add test for customresponse problem type --- cms/djangoapps/contentstore/tests/test_contentstore.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cms/djangoapps/contentstore/tests/test_contentstore.py b/cms/djangoapps/contentstore/tests/test_contentstore.py index 85666e0483..3c2cae99c1 100644 --- a/cms/djangoapps/contentstore/tests/test_contentstore.py +++ b/cms/djangoapps/contentstore/tests/test_contentstore.py @@ -359,6 +359,12 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase): self.assertEqual(resp.status_code, 200) self.assertIn('Inline content', resp.content) + # also try a custom response + problem_module_location = Location(['i4x', 'edX', 'full', 'problem', 'H1P1_Energy', None]) + url = reverse('preview_component', kwargs={'location': problem_module_location.url()}) + resp = self.client.get(url) + self.assertEqual(resp.status_code, 200) + def test_delete(self): direct_store = modulestore('direct') import_from_xml(direct_store, 'common/test/data/', ['full'])