'Establish a WMI connection to the specified host/namespace, with the right credentials.'

def test_wmi_connection(self):

    wmi_sampler = WMISampler('Win32_PerfRawData_PerfOS_System', ['ProcessorQueueLength'], host='myhost', namespace='some/namespace', username='datadog', password='password', provider=32)
    wmi_sampler.get_connection()
    self.assertWMIConn(wmi_sampler, param='myhost')
    self.assertWMIConn(wmi_sampler, param='some/namespace')
