#NEWLINE# def test_env_cached_static( self ) : #NEWLINE# #INDENT# sys . stdout = em . ProxyFile ( sys . stdout ) #NEWLINE# template_file = os . path . join ( os . path . dirname ( __file__ ) , '..' , '..' , 'cmake' , 'em' , 'order_packages.cmake.em' ) #NEWLINE# with open ( template_file , 'r' ) as fhand : #NEWLINE# #INDENT# template = fhand . read ( ) #NEWLINE# #UNINDENT# gdict = { #NEWLINE# #INDENT# 'CATKIN_DEVEL_PREFIX' : '/foo' , #NEWLINE# 'CMAKE_PREFIX_PATH' : [ '/bar' ] , #NEWLINE# 'CATKIN_GLOBAL_LIB_DESTINATION' : '/glob-dest/lib' , #NEWLINE# 'CATKIN_GLOBAL_BIN_DESTINATION' : '/glob-dest/bin' , #NEWLINE# 'PYTHON_INSTALL_DIR' : '/foo/dist-packages' , #NEWLINE# #UNINDENT# } #NEWLINE# result = em . expand ( template , gdict , source_root_dir = '/tmp/nowhere_dir' , whitelisted_packages = [ ] , blacklisted_packages = [ ] , underlay_workspaces = [ ] ) #NEWLINE# self . assertTrue ( ( 'set(CATKIN_ORDERED_PACKAGES "")' in result ) , result ) #NEWLINE# self . assertTrue ( ( 'set(CATKIN_ORDERED_PACKAGE_PATHS "")' in result ) , result ) #NEWLINE# self . assertTrue ( ( 'set(CATKIN_ORDERED_PACKAGES_IS_META "")' in result ) , result ) #NEWLINE# self . assertTrue ( ( 'set(CATKIN_ORDERED_PACKAGES_BUILD_TYPE "")' in result ) , result ) #NEWLINE# self . assertTrue ( ( 'set(CATKIN_MESSAGE_GENERATORS' in result ) , result ) #NEWLINE# self . assertEqual ( 10 , len ( result . splitlines ( ) ) )