'Parse WMI objects from WMI query results.'

def test_wmi_parser(self):

    wmi_sampler = WMISampler('Win32_PerfFormattedData_PerfDisk_LogicalDisk', ['AvgDiskBytesPerWrite', 'FreeMegabytes'])
    wmi_sampler.sample()
    expected_results = [{'freemegabytes': 19742.0, 'name': 'C:', 'avgdiskbytesperwrite': 1536.0}, {'freemegabytes': 19742.0, 'name': 'D:', 'avgdiskbytesperwrite': 1536.0}]
    self.assertEquals(wmi_sampler, expected_results, wmi_sampler)
