<s> """<STR_LIT>""" <EOL> import sys <EOL> import os <EOL> import unittest <EOL> import getpass <EOL> from distutils . command . install_headers import install_headers <EOL> from distutils . tests import support <EOL> from test . test_support import run_unittest <EOL> class InstallHeadersTestCase ( support . TempdirManager , <EOL> support . LoggingSilencer , <EOL> support . EnvironGuard , <EOL> unittest . TestCase ) : <EOL> def test_simple_run ( self ) : <EOL> header_list = self . mkdtemp ( ) <EOL> header1 = os . path . join ( header_list , '<STR_LIT>' ) <EOL> header2 = os . path . join ( header_list , '<STR_LIT>' ) <EOL> self . write_file ( header1 ) <EOL> self . write_file ( header2 ) <EOL> headers = [ header1 , header2 ] <EOL> pkg_dir , dist = self . create_dist ( headers = headers ) <EOL> cmd = install_headers ( dist ) <EOL> self . assertEqual ( cmd . get_inputs ( ) , headers ) <EOL> cmd . install_dir = os . path . join ( pkg_dir , '<STR_LIT>' ) <EOL> cmd . ensure_finalized ( ) <EOL> cmd . run ( ) <EOL> self . assertEqual ( len ( cmd . get_outputs ( ) ) , <NUM_LIT:2> ) <EOL> def test_suite ( ) : <EOL> return unittest . makeSuite ( InstallHeadersTestCase ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> run_unittest ( test_suite ( ) ) </s>
