'Test moving an item at a large index would generate an error message.'

def test_move_large_target_index(self):

    parent = self.get_item_from_modulestore(self.vert2_usage_key)
    parent_children_length = len(parent.children)
    response = self._move_component(self.html_usage_key, self.vert2_usage_key, (parent_children_length + 10))
    self.assertEqual(response.status_code, 400)
    response = json.loads(response.content)
    expected_error = 'You    can    not    move    {usage_key}    at    an    invalid    index    ({target_index}).'.format(usage_key=self.html_usage_key, target_index=(parent_children_length + 10))
    self.assertEqual(expected_error, response['error'])
    new_parent_loc = self.store.get_parent_location(self.html_usage_key)
    self.assertEqual(new_parent_loc, self.vert_usage_key)
