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

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

src/8/0/8-bits-HEAD/appengine-mapreduce/python/test/mapreduce/context_test.py   8-bits(Download)
    try:  # test, verify
      pool.put(e1)
      pool.delete(e2.key())
      self.assertEquals([e1._populate_internal_entity()], pool.puts.items)
      self.assertEquals([e2.key()], pool.deletes.items)
    m.ReplayAll()
    try:  # test, verify
      self.pool.delete(e1)
      self.assertEquals([e1.key()], self.pool.deletes.items)
 
      self.pool.delete(e2)
    try:  # test, verify
      for e in entities:
        self.pool.delete(e)
 
      # only 50 entities should be left.
      self.assertEquals([e1._populate_internal_entity()], self.pool.puts.items)
 
      self.pool.delete(e2)
      self.assertEquals([e2.key()], self.pool.deletes.items)
 

src/a/p/appengine-mapreduce-HEAD/python/test/mapreduce/context_test.py   appengine-mapreduce(Download)
    m.ReplayAll()
    try:  # test, verify
      self.pool.delete(e1)
      self.assertEquals([e1.key()], self.pool.deletes.items)
 
      self.pool.delete(e2)
    try:  # test, verify
      for e in entities:
        self.pool.delete(e)
 
      # only 50 entities should be left.
      self.assertEquals([e1._populate_internal_entity()], self.pool.puts.items)
 
      self.pool.delete(e2)
      self.assertEquals([e2.key()], self.pool.deletes.items)