#NEWLINE# @ mock . patch . object ( utils , 'execute' , side_effect = processutils . ProcessExecutionError ) #NEWLINE# def test_ensure_ca_filesystem_chdir( self , * args , **kargs ) : #NEWLINE# #INDENT# with utils . tempdir ( ) as tmpdir : #NEWLINE# #INDENT# self . flags ( ca_path = self ) #NEWLINE# start = os . getcwd ( ) #NEWLINE# self . assertRaises ( processutils . ProcessExecutionError , crypto . ensure_ca_filesystem ) #NEWLINE# self . assertEqual ( start , os . getcwd ( ) )