'Test invalid move.'

def test_invalid_move(self):

    parent_loc = self.store.get_parent_location(self.html_usage_key)
    response = self._move_component(self.html_usage_key, self.seq_usage_key)
    self.assertEqual(response.status_code, 400)
    response = json.loads(response.content)
    expected_error = 'You    can    not    move    {source_type}    into    {target_type}.'.format(source_type=self.html_usage_key.block_type, target_type=self.seq_usage_key.block_type)
    self.assertEqual(expected_error, response['error'])
    new_parent_loc = self.store.get_parent_location(self.html_usage_key)
    self.assertEqual(new_parent_loc, parent_loc)
