def METHOD_NAME(self):
    with self.assertRaises(Exception) as context:
        obtain_resource(
            resource_id="test-binary-resource",
            resource_directory=self.get_resource_dir(),
            resource_version="3.0.0",
        )
    self.assertTrue(
        f"Resource test-binary-resource with version '3.0.0'"
        " not found.\nResource versions can be found at: "
        f"https://resources.gem5.org/resources/test-binary-resource/versions"
        in str(context.exception)
    )