#NEWLINE# def test_process_vms_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# vms = p . get_memory_info ( ) . vms #NEWLINE# wmi_usage = int ( w . PageFileUsage ) #NEWLINE# if ( ( vms != wmi_usage ) and ( vms != ( wmi_usage * 1024 ) ) ) : #NEWLINE# #INDENT# self . fail ( ( 'wmi=%s, psutil=%s' % ( wmi_usage , vms ) ) )