def testGenerateShardedFilenamesManyShards(self): names = io.GenerateShardedFilenames('/dir/foo/bar@100000') self.assertEquals(len(names), 100000) self.assertEquals(names[99999], '/dir/foo/bar-099999-of-100000')
def testGenerateShardedFilenames(self, spec, expected): names = io.GenerateShardedFilenames(spec) self.assertEquals(names, expected)