'WMI connections are not be shared among WMISampler objects.'

def test_no_wmi_connection_pooling(self):

    from win32com.client import Dispatch
    wmi_sampler_1 = WMISampler('Win32_PerfRawData_PerfOS_System', ['ProcessorQueueLength'])
    wmi_sampler_2 = WMISampler('Win32_OperatingSystem', ['TotalVisibleMemorySize'])
    wmi_sampler_3 = WMISampler('Win32_PerfRawData_PerfOS_System', ['ProcessorQueueLength'], host='myhost')
    wmi_sampler_1.sample()
    wmi_sampler_2.sample()
    self.assertEquals(Dispatch.ConnectServer.call_count, 3, Dispatch.ConnectServer.call_count)
    wmi_sampler_3.sample()
    self.assertEquals(Dispatch.ConnectServer.call_count, 5, Dispatch.ConnectServer.call_count)
