grr/server/grr_response_server/artifact_test.py
def testWMIQueryArtifact(self):
    """Check we can run WMI based artifacts."""
    client_id = self.SetupClient(
        0, system="Windows", os_version="6.2", arch="AMD64")
    col = self.RunCollectorAndGetCollection(["WMIInstalledSoftware"],
                                            client_id=client_id)

    self.assertLen(col, 3)
    descriptions = [package.description for package in col]
    self.assertIn("Google Chrome", descriptions)
Check we can run WMI based artifacts.
Check we can run WMI based artifacts.
Check we can run WMI based artifacts .
def testWMIQueryArtifact(self):
    client_id = self.SetupClient(
        0, system="Windows", os_version="6.2", arch="AMD64")
    col = self.RunCollectorAndGetCollection(["WMIInstalledSoftware"],
                                            client_id=client_id)
    self.assertLen(col, 3)
    descriptions = [package.description for package in col]
    self.assertIn("Google Chrome", descriptions)
def testWMIQueryArtifact ( self ) : client_id = self . SetupClient ( 0 , system = "Windows" , os_version = "6.2" , arch = "AMD64" ) col = self . RunCollectorAndGetCollection ( [ "WMIInstalledSoftware" ] , client_id = client_id ) self . assertLen ( col , 3 ) descriptions = [ package . description for package in col ] self . assertIn ( "Google Chrome" , descriptions )
Check we can run WMI based artifacts.
Check we can run WMI based artifacts .
"""Check we can run WMI based artifacts."""
self