'Try the straightforward use cases'

def test_create_nicely(self):

    display_name = 'Nicely    created'
    resp = self.create_xblock(display_name=display_name, category='chapter')
    chap_usage_key = self.response_usage_key(resp)
    new_obj = self.get_item_from_modulestore(chap_usage_key)
    self.assertEqual(new_obj.scope_ids.block_type, 'chapter')
    self.assertEqual(new_obj.display_name, display_name)
    self.assertEqual(new_obj.location.org, self.course.location.org)
    self.assertEqual(new_obj.location.course, self.course.location.course)
    course = self.get_item_from_modulestore(self.usage_key)
    self.assertIn(chap_usage_key, course.children)
    resp = self.create_xblock(parent_usage_key=chap_usage_key, category='vertical')
    vert_usage_key = self.response_usage_key(resp)
    template_id = 'multiplechoice.yaml'
    resp = self.create_xblock(parent_usage_key=vert_usage_key, category='problem', boilerplate=template_id)
    prob_usage_key = self.response_usage_key(resp)
    problem = self.get_item_from_modulestore(prob_usage_key, verify_is_draft=True)
    template = CapaDescriptor.get_template(template_id)
    self.assertEqual(problem.data, template['data'])
    self.assertEqual(problem.display_name, template['metadata']['display_name'])
    self.assertEqual(problem.markdown, template['metadata']['markdown'])
