grr/server/grr_response_server/flows/general/collectors_test.py
def testArtifactWithoutDependency(self):
    """Test that artifact list without dependencies does not change."""

    self.cleanup = InitGRRWithTestSources("""
name: Artifact0
doc: An artifact without dependencies.
sources:
- type: FILE
  attributes:
    paths:
      - '/sample/path'
supported_os: [Linux]
""")

    artifact_arranger = collectors.ArtifactArranger(
        os_name="Linux", artifacts_name_list=["Artifact0"])
    artifact_list = artifact_arranger.GetArtifactsInProperOrder()
    self.assertEqual(artifact_list, ["Artifact0"])
Test that artifact list without dependencies does not change.
Test that artifact list without dependencies does not change.
Test that artifact list without dependencies does not change .
def testArtifactWithoutDependency(self):
    self.cleanup = InitGRRWithTestSources("""
name: Artifact0
doc: An artifact without dependencies.
sources:
- type: FILE
  attributes:
    paths:
      - '/sample/path'
supported_os: [Linux]
""")
    artifact_arranger = collectors.ArtifactArranger(
        os_name="Linux", artifacts_name_list=["Artifact0"])
    artifact_list = artifact_arranger.GetArtifactsInProperOrder()
    self.assertEqual(artifact_list, ["Artifact0"])
def testArtifactWithoutDependency ( self ) : self . cleanup = InitGRRWithTestSources ( """
name: Artifact0
doc: An artifact without dependencies.
sources:
- type: FILE
  attributes:
    paths:
      - '/sample/path'
supported_os: [Linux]
""" ) artifact_arranger = collectors . ArtifactArranger ( os_name = "Linux" , artifacts_name_list = [ "Artifact0" ] ) artifact_list = artifact_arranger . GetArtifactsInProperOrder ( ) self . assertEqual ( artifact_list , [ "Artifact0" ] )
Test that artifact list without dependencies does not change.
Test that artifact list without dependencies does not change .
"""Test that artifact list without dependencies does not change."""
self