<s> import unittest <EOL> import os <EOL> from conans . test . tools import TestClient , TestBufferConanOutput <EOL> from conans . test . utils . test_files import hello_source_files <EOL> from conans . client . manager import CONANFILE <EOL> from conans . model . ref import ConanFileReference , PackageReference <EOL> import shutil <EOL> from conans . paths import CONANINFO <EOL> from conans . client . packager import create_package <EOL> from conans . client . loader import ConanFileLoader <EOL> from conans . model . options import OptionsValues <EOL> from conans . model . settings import Settings <EOL> from conans . client . output import ScopedOutput <EOL> myconan1 = """<STR_LIT>""" <EOL> class ExporterTest ( unittest . TestCase ) : <EOL> def complete_test ( self ) : <EOL> """<STR_LIT>""" <EOL> client = TestClient ( ) <EOL> client . init_dynamic_vars ( ) <EOL> files = hello_source_files ( ) <EOL> conan_ref = ConanFileReference . loads ( "<STR_LIT>" ) <EOL> reg_folder = client . paths . export ( conan_ref ) <EOL> client . save ( files , path = reg_folder ) <EOL> client . save ( { CONANFILE : myconan1 , <EOL> CONANINFO : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" } , path = reg_folder ) <EOL> conanfile_path = os . path . join ( reg_folder , CONANFILE ) <EOL> package_ref = PackageReference ( conan_ref , "<STR_LIT>" ) <EOL> build_folder = client . paths . build ( package_ref ) <EOL> package_folder = client . paths . package ( package_ref ) <EOL> shutil . copytree ( reg_folder , build_folder ) <EOL> loader = ConanFileLoader ( None , Settings ( ) , OptionsValues . loads ( "<STR_LIT>" ) ) <EOL> conanfile = loader . load_conan ( conanfile_path , None ) <EOL> output = ScopedOutput ( "<STR_LIT>" , TestBufferConanOutput ( ) ) <EOL> create_package ( conanfile , build_folder , package_folder , output ) <EOL> self . assertTrue ( os . path . exists ( build_folder ) ) <EOL> self . assertTrue ( os . path . exists ( os . path . join ( package_folder , CONANINFO ) ) ) <EOL> self . assertTrue ( os . path . exists ( package_folder ) ) <EOL> def exist ( rel_path ) : <EOL> return os . path . exists ( os . path . join ( package_folder , rel_path ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertTrue ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( exist ( "<STR_LIT>" ) ) </s>
