'Test that a component can not be moved to itself.'

def test_can_not_move_into_itself(self):

    library_content = self.create_xblock(parent_usage_key=self.vert_usage_key, display_name='library    content    block', category='library_content')
    library_content_usage_key = self.response_usage_key(library_content)
    parent_loc = self.store.get_parent_location(library_content_usage_key)
    self.assertEqual(parent_loc, self.vert_usage_key)
    response = self._move_component(library_content_usage_key, library_content_usage_key)
    self.assertEqual(response.status_code, 400)
    response = json.loads(response.content)
    self.assertEqual(response['error'], 'You    can    not    move    an    item    into    itself.')
    self.assertEqual(self.store.get_parent_location(self.html_usage_key), parent_loc)
