def METHOD_NAME(self):
    bootstrap = Bootstrap(ztps_default_config=True)
    version1 = "4.18.1F"
    version2 = "4.17.2F"
    bootstrap.eapi.version = version1
    bootstrap.ztps.set_definition_response(
        actions=[
            {
                "action": "test_action",
                "attributes": {"downgrade": False, "url": random_string(), "version": version2},
            },
            {"action": "startup_config_action"},
        ]
    )
    bootstrap.ztps.set_action_response("test_action", get_action("install_image"))
    bootstrap.ztps.set_action_response("startup_config_action", startup_config_action())
    bootstrap.start_test()
    image_file = "{}/EOS-{}.swi".format(bootstrap.flash, version2)
    try:
        self.assertTrue(bootstrap.success())
        self.assertTrue("install_image: nothing to do: downgrade disabled" in bootstrap.output)
    except AssertionError as assertion:
        print("Output: {}".format(bootstrap.output))
        print("Error: {}".format(bootstrap.error))
        raise_exception(assertion)
    finally:
        remove_file(image_file)
        bootstrap.end_test()