'Helper, assertion on the `wmi_sampler`\'s WMI connection(s):
* `param`: parameters used to establish the connection'

def assertWMIConn(self, wmi_sampler, param=None):

    if param:
        connection = wmi_sampler.get_connection()
        (wmi_conn_args, wmi_conn_kwargs) = connection.get_conn_args()
        if isinstance(param, tuple):
            (key, value) = param
            self.assertIn(key, wmi_conn_kwargs)
            self.assertEquals(wmi_conn_kwargs[key], value)
        else:
            self.assertIn(param, wmi_conn_args)
