'Test moving an item to a particular index.'

def test_move_source_index(self):

    parent = self.get_item_from_modulestore(self.vert_usage_key)
    children = parent.get_children()
    self.assertEqual(len(children), 3)
    resp = self.create_xblock(parent_usage_key=self.vert2_usage_key, display_name='html2', category='html')
    html2_usage_key = self.response_usage_key(resp)
    self.assert_move_item(html2_usage_key, self.vert_usage_key, 1)
    parent = self.get_item_from_modulestore(self.vert_usage_key)
    children = parent.get_children()
    self.assertEqual(len(children), 4)
    self.assertEqual(children[1].location, html2_usage_key)
