#NEWLINE# @ unittest . skipIf ( ( wmi is None ) , 'wmi module is not installed' ) #NEWLINE# def test_process_rss_memory( self ) : #NEWLINE# #INDENT# time . sleep ( 0.1 ) #NEWLINE# w = wmi . WMI ( ) . Win32_Process ( ProcessId = self . pid ) [ 0 ] #NEWLINE# p = psutil . Process ( self . pid ) #NEWLINE# rss = p . memory_info ( ) . rss #NEWLINE# self . assertEqual ( self , int ( w . WorkingSetSize ) )