#NEWLINE# def test_fake_windows_env( self ) : #NEWLINE# #INDENT# original = { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } #NEWLINE# defaults = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ve_path = 'fnard' #NEWLINE# bin_path = os . path . join ( ve_path , 'Scripts' ) #NEWLINE# with patch ( 'platform.system' , return_value = 'Windows' ) , patch ( 'os.path.exists' , return_value = True ) : #NEWLINE# #INDENT# assert ( platform . system ( ) == 'Windows' ) #NEWLINE# environ = run . get_environ ( original , defaults , ve_path ) #NEWLINE# #UNINDENT# assert ( environ . get ( 'VIRTUAL_ENV' ) == ve_path ) #NEWLINE# PATH = environ . get ( 'PATH' , '' ) #NEWLINE# paths = PATH . split ( os . pathsep ) #NEWLINE# assert ( paths [ 0 ] == PATH )