Ever slightly more rigorous test. actually look for the markdown field

in the model as well as the ancillary info
This commit is contained in:
Don Mitchell
2013-01-09 10:47:03 -05:00
parent ae4e7815a9
commit 2d8ddb0dcb

View File

@@ -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")