예제 #1
0
 def test_iterrows(self):
     m = ObjectStore()
     m.insert_many(0, range(10))
     for iter_, value in m.iterrows():
         self.failUnlessEqual(m.get_value(iter_), value)
예제 #2
0
 def test_iterrows(self):
     m = ObjectStore()
     m.insert_many(0, range(10))
     for iter_, value in m.iterrows():
         self.failUnlessEqual(m.get_value(iter_), value)
예제 #3
0
 def test_iter_append_many(self):
     m = ObjectStore()
     iters = list(m.iter_append_many(range(10)))
     self.failUnlessEqual([r[0] for r in m], range(10))
     values = [m.get_value(i) for i in iters]
     self.failUnlessEqual(values, range(10))
예제 #4
0
 def test_iter_append_many(self):
     m = ObjectStore()
     iters = list(m.iter_append_many(range(10)))
     self.failUnlessEqual([r[0] for r in m], range(10))
     values = [m.get_value(i) for i in iters]
     self.failUnlessEqual(values, range(10))