separation based on responsetypes poc

FEDX-176
This commit is contained in:
muhammad-ammar
2016-06-08 14:18:10 +05:00
committed by muzaffaryousaf
parent 2fcc463338
commit d14928cc61
27 changed files with 1193 additions and 975 deletions

View File

@@ -36,7 +36,7 @@ class TemplateTests(ModuleStoreTestCase):
self.assertIn('markdown', dropdown['metadata'])
self.assertIn('data', dropdown)
self.assertRegexpMatches(dropdown['metadata']['markdown'], r'^Dropdown.*')
self.assertRegexpMatches(dropdown['data'], r'<problem>\s*<p>Dropdown.*')
self.assertRegexpMatches(dropdown['data'], r'<problem>\s*<optionresponse>\s*<p>Dropdown.*')
def test_get_some_templates(self):
self.assertEqual(len(SequenceDescriptor.templates()), 0)