'Test that a problem treats markdown specially.'

def test_capa_module(self):

    course = CourseFactory.create()
    problem_data = {'parent_locator': unicode(course.location), 'category': 'problem'}
    resp = self.client.ajax_post(reverse_url('xblock_handler'), problem_data)
    self.assertEqual(resp.status_code, 200)
    payload = parse_json(resp)
    problem_loc = UsageKey.from_string(payload['locator'])
    problem = self.store.get_item(problem_loc)
    self.assertIsInstance(problem, CapaDescriptor, 'New    problem    is    not    a    CapaDescriptor')
    context = problem.get_context()
    self.assertIn('markdown', context, 'markdown    is    missing    from    context')
    self.assertNotIn('markdown', problem.editable_metadata_fields, 'Markdown    slipped    into    the    editable    metadata    fields')
