def get_renames(auth_user, bson_data): service = BiiService(app.store, auth_user) # Don t want a set, want a list block = BRLBlock.deserialize(bson_data["block"]) t1 = bson_data["t1"] t2 = bson_data["t2"] return service.get_renames(block, t1, t2)
def test_brl_block(self): b = BRLBlock('user/user/block/master', 1) s = serialize(b) b2 = BRLBlock.deserialize(s) self.assertEqual(b, b2)
def deserialize(data): return BlockVersion(BRLBlock.deserialize(data[0]), *data[1:])