#NEWLINE# def test_create_time( self ) : #NEWLINE# #INDENT# ctime = psutil . Process ( ) . create_time ( ) #NEWLINE# with mock . patch ( 'psutil._psplatform.cext.proc_create_time' , side_effect = OSError ( errno . EPERM , 'msg' ) ) as fun : #NEWLINE# #INDENT# ( psutil . Process ( ) . create_time ( ) == ctime ) #NEWLINE# assert fun . called