'create_item(user, location, category, definition_locator=None, fields): new_desciptor'

def test_create_minimal_item(self):

    locator = CourseLocator(org='testx', course='GreekHero', run='run', branch=BRANCH_NAME_DRAFT)
    premod_course = modulestore().get_course(locator)
    premod_history = modulestore().get_course_history_info(locator)
    category = 'sequential'
    new_module = modulestore().create_item('user123', locator, category, fields={'display_name': 'new    sequential'})
    self.assertEqual(new_module.location.course, 'GreekHero')
    self.assertNotEqual(new_module.location.version_guid, premod_course.location.version_guid)
    self.assertIsNone(locator.version_guid, 'Version    inadvertently    filled    in')
    current_course = modulestore().get_course(locator)
    self.assertEqual(new_module.location.version_guid, current_course.location.version_guid)
    history_info = modulestore().get_course_history_info(current_course.location.course_key)
    self.assertEqual(history_info['previous_version'], premod_course.location.version_guid)
    self.assertEqual(history_info['original_version'], premod_history['original_version'])
    self.assertEqual(history_info['edited_by'], 'user123')
    self.assertEqual(new_module.category, 'sequential')
    self.assertIsNotNone(new_module.definition_locator)
    self.assertEqual(new_module.display_name, 'new    sequential')
    locator = new_module.location.map_into_course(CourseLocator(version_guid=premod_course.location.version_guid))
    with self.assertRaises(ItemNotFoundError):
        modulestore().get_item(locator)
