def test_itervalues_empty(self): m = ObjectStore() self.assertEqual(list(m.itervalues()), [])
def test_itervalues(self): m = ObjectStore() m.insert_many(0, range(10)) self.failUnlessEqual(range(10), list(m.itervalues()))