#NEWLINE# def test_special_pid( self ) : #NEWLINE# #INDENT# p = psutil . Process ( 4 ) #NEWLINE# self . assertEqual ( p . name ( ) , 'System' ) #NEWLINE# str ( p ) #NEWLINE# p . username ( ) #NEWLINE# self . assertTrue ( ( p . create_time ( ) >= 0.0 ) ) #NEWLINE# try : #NEWLINE# #INDENT# ( rss , vms ) = p . memory_info ( ) [ : 2 ] #NEWLINE# #UNINDENT# except psutil . AccessDenied : #NEWLINE# #INDENT# if ( not ( platform . uname ( ) [ 1 ] in ( 'vista' , 'win-7' , 'win7' ) ) ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . assertTrue ( ( rss > 0 ) )