

def test_corrupted_conanfile(self):
    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)
    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/original