'Check we can run WMI based artifacts.'

def testFirefox(self):

    with self.MockClientMountPointsWithImage(os.path.join(self.base_path, 'test_img.dd')):
        fd = self.RunCollectorAndGetCollection([webhistory.FirefoxHistory.__name__], client_mock=self.client_mock, use_tsk=True)
    self.assertEqual(len(fd), 5)
    self.assertEqual(fd[0].access_time.AsSecondsFromEpoch(), 1340623334)
    self.assertTrue(('http://sport.orf.at/' in [d.url for d in fd]))
    self.assertTrue(fd[0].source_urn.Path().endswith('/home/test/.mozilla/firefox/adts404t.default/places.sqlite'))
