'Test moving an item to an invalid index.'

def test_move_invalid_source_index(self):

    target_index = 'test_index'
    parent_loc = self.store.get_parent_location(self.html_usage_key)
    response = self._move_component(self.html_usage_key, self.vert2_usage_key, target_index)
    self.assertEqual(response.status_code, 400)
    response = json.loads(response.content)
    error = 'You    must    provide    target_index    ({target_index})    as    an    integer.'.format(target_index=target_index)
    self.assertEqual(response['error'], error)
    new_parent_loc = self.store.get_parent_location(self.html_usage_key)
    self.assertEqual(new_parent_loc, parent_loc)
