'Identify the artifacts that should be collected based on criteria.'

def testMapArtifactsToTriggers(self):

    expect = set(['DebianPackagesStatus', 'SshdConfigFile'])
    result = set(checks.CheckRegistry.SelectArtifacts(os_name='Linux'))
    residual = (expect - result)
    self.assertFalse(residual)
    expect = set(['WMIInstalledSoftware'])
    result = set(checks.CheckRegistry.SelectArtifacts(os_name='Windows'))
    residual = (expect - result)
    self.assertFalse(residual)
    expect = set(['DebianPackagesStatus'])
    result = set(checks.CheckRegistry.SelectArtifacts(os_name=None, cpe=None, labels='foo'))
    residual = (expect - result)
    self.assertFalse(residual)
    expect = set(['DebianPackagesStatus'])
    result = set(checks.CheckRegistry.SelectArtifacts(os_name='Linux', restrict_checks=['SW-CHECK']))
    self.assertItemsEqual(expect, result)
