Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/8/0/8-bits-HEAD/appengine-mapreduce/python/test/mapreduce/input_readers_test.py   8-bits(Download)
  def testStr(self):
    """Simplistic test for stringification of LogInputReader."""
    readers = input_readers.LogInputReader.split_input(self.mapper_spec)
    self.assertEqual(
        "LogInputReader"
  def testEvenLogSplit(self):
    readers = input_readers.LogInputReader.split_input(self.mapper_spec)
    self.assertEquals(self.num_shards, len(readers))
 
    for i, reader in enumerate(readers):
        num_shards)
 
    readers = input_readers.LogInputReader.split_input(mapper_spec)
    self.assertEquals(num_shards, len(readers))
 
  def testToJsonFromJson(self):
    """Test to/from json implementations."""
    readers = input_readers.LogInputReader.split_input(self.mapper_spec)
    start_time = self.mapper_spec.params["input_reader"]["start_time"]
    end_time = self.mapper_spec.params["input_reader"]["end_time"]