Ejemplo n.º 1
0
 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')
Ejemplo n.º 2
0
 def testGenerateShardedFilenames(self, spec, expected):
   names = io.GenerateShardedFilenames(spec)
   self.assertEquals(names, expected)