

def setUp(self):
    super(FilestoreStatsCronFlowTest, self).setUp()
    for i in range(0, 10):
        newfd = aff4.FACTORY.Create(('aff4:/files/hash/generic/sha256/fsi%s' % i), 'FileStoreImage', token=self.token)
        newfd.size = (i * 1000000.0)
        for j in range(0, i):
            newfd.AddIndex(('aff4:/C.000000000000000%s/fs/os/blah%s' % (j, j)))
        newfd.Close()
    newfd = aff4.FACTORY.Create('aff4:/files/hash/generic/sha256/blobbig', 'FileStoreImage', token=self.token)
    newfd.size = 1000000000000.0
    newfd.AddIndex('aff4:/C.0000000000000001/fs/os/1')
    newfd.AddIndex('aff4:/C.0000000000000001/fs/os/2')
    newfd.Close()
    newfd = aff4.FACTORY.Create('aff4:/files/hash/generic/sha256/blobtiny', 'FileStoreImage', token=newfd.token)
    newfd.size = 12
    newfd.AddIndex('aff4:/C.0000000000000001/fs/os/1')
    newfd.Close()

dataset/ETHPy150Open google/grr/grr/lib/flows/cron/filestore_stats_test.py FilestoreStatsCronFlowTest.setUp/VarMisuse@160/300 `self`->`newfd`