관리-도구
편집 파일: MSVSSettings_test.pyc
� �Rac @ sc d Z d d l Z d d l Z d d l j Z d e j f d � � YZ e d k r_ e j � n d S( s( Unit tests for the MSVSSettings.py file.i����Nt TestSequenceFunctionsc B sb e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s t j � | _ d S( N( t StringIOt stderr( t self( ( ss /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt setUp s c C sg | j j d � | j j � j d � } g | D] } | r/ | ^ q/ } | j t | � t | � � d S( s- Compares recorded lines to expected warnings.i s N( R t seekt readt splitt assertEqualt sorted( R t expectedt actualt line( ( ss /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt _ExpectedWarnings s c C sb t j i i d 6i d 6i d 6i d 6i d 6i d 6i d 6i d 6| j � | j d d g � d S( s, Tests that only MSVS tool names are allowed.t VCCLCompilerToolt VCLinkerToolt VCMIDLToolt foot VCResourceCompilerToolt VCLibrarianToolt VCManifestToolt ClCompiles Warning: unrecognized tool foos$ Warning: unrecognized tool ClCompileN( t MSVSSettingst ValidateMSVSSettingsR R ( R ( ( ss /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings_test.pyt# testValidateMSVSSettings_tool_names s c C s> t j i i@ d d 6d d g d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d! 6d"