From 2d8ddb0dcb4bc5b20ff05486ce3a71fbe5f0939e Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Wed, 9 Jan 2013 10:47:03 -0500 Subject: [PATCH] Ever slightly more rigorous test. actually look for the markdown field in the model as well as the ancillary info --- cms/djangoapps/contentstore/tests/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/tests/tests.py b/cms/djangoapps/contentstore/tests/tests.py index a8bf5e82a0..a858f4e68d 100644 --- a/cms/djangoapps/contentstore/tests/tests.py +++ b/cms/djangoapps/contentstore/tests/tests.py @@ -458,5 +458,6 @@ class ContentStoreTest(TestCase): # should be a CapaDescriptor self.assertIsInstance(problem, CapaDescriptor, "New problem is not a CapaDescriptor") context = problem.get_context() - self.assertIn('markdown', context, "markdown is missing") + self.assertIn('markdown', context, "markdown is missing from context") + self.assertIn('markdown', problem.metadata, "markdown is missing from metadata") self.assertNotIn('markdown', problem.editable_metadata_fields, "Markdown slipped into the editable metadata fields") \ No newline at end of file