def test_iterrows_empty(self): m = ObjectStore() self.assertEqual(list(m.iterrows()), [])
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)