def test_corrupted_conanfile(self):
        # If we try to install it it will find in local folder (no remote call)
        self.conan.run("install %s --build missing" % str(self.conan_reference))
        self.assertNotIn("Conan %s not found, retrieving from server" + str(self.conan_reference),
                         self.conan.user_io.out)

        # Now alter a local file and try to install it,
        # conan should download the conanfile from remote
        # because the local files are not correct

        export_path = self.conan.paths.export(self.conan_reference)
        file_path = os.path.join(export_path, list(self.files.keys())[0])
        save(file_path, "BAD CONTENT")

        self.conan.run("install %s --build missing" % str(self.conan_reference))
        self.assertIn("Bad conanfile detected!", str(self.conan.user_io.out))
        self.assertIn("%s: Retrieving from remote 'default'"
                      % str(self.conan_reference),
                      self.conan.user_io.out)
dataset/ETHPy150Open conan-io/conan/conans/test/integration/manifest_validation_test.py/ManifestValidationTest.test_corrupted_conanfile/operator `%` -> `+`