'Check we can run WMI based artifacts.'

def testWMIQueryArtifact(self):

    self.RunCollectorAndGetCollection(['WMIInstalledSoftware'], store_results_in_aff4=True)
    urn = self.client_id.Add('info/software')
    fd = aff4.FACTORY.Open(urn, token=self.token)
    packages = fd.Get(fd.Schema.INSTALLED_PACKAGES)
    self.assertEqual(len(packages), 3)
    self.assertEqual(packages[0].description, 'Google    Chrome')
