'Test we can get a basic artifact.'

def testGetArtifact1(self):

    client_mock = action_mocks.FileFinderClientMock()
    client = aff4.FACTORY.Open(self.client_id, token=self.token, mode='rw')
    client.Set(client.Schema.SYSTEM('Linux'))
    client.Flush()
    file_path = os.path.join(self.base_path, 'test_img.dd')
    coll1 = artifact_registry.ArtifactSource(type=artifact_registry.ArtifactSource.SourceType.FILE, attributes={'paths': [file_path]})
    self.fakeartifact.sources.append(coll1)
    artifact_list = ['FakeArtifact']
    for _ in flow_test_lib.TestFlowHelper(collectors.ArtifactCollectorFlow.__name__, client_mock, artifact_list=artifact_list, use_tsk=False, token=self.token, client_id=self.client_id):
        pass
    fd1 = aff4.FACTORY.Open(('%s/fs/os/%s' % (self.client_id, file_path)), token=self.token)
    fd2 = open(file_path, 'rb')
    fd2.seek(0, 2)
    self.assertEqual(fd2.tell(), int(fd1.Get(fd1.Schema.SIZE)))
