def METHOD_NAME(self):
    """
    Test cancels
    Failed to fetch asset
    """
    fake_assetname = "fake_foo.tgz"
    localpath = os.path.join(self.asset_dir, fake_assetname)
    fake_url = f"file://{localpath}"
    fetch_content = rf"""
    foo = self.fetch_asset(
        '{fake_assetname}',
        locations='{fake_url}',
        cancel_on_missing=True)
    """
    test_content = TEST_TEMPLATE.format(content=fetch_content)
    test_file = tempfile.NamedTemporaryFile(
        suffix=".py", dir=self.base_dir.name, delete=False
    )
    test_file.write(test_content.encode())
    test_file.close()
    expected_rc = exit_codes.AVOCADO_ALL_OK
    expected_stdout = "Missing asset"
    cmd_line = (
        f"{AVOCADO} --config {self.config_file.name} run " f"{test_file.name} "
    )
    result = process.run(cmd_line, ignore_status=True)
    self.assertEqual(expected_rc, result.exit_status)
    self.assertIn(expected_stdout, result.stdout_text)