def get_resource(self, context, object_id): obj = db_api.binding_get(context, object_id) return dict(obj)
def test_get(self): obj = dict(api.binding_get(self.context, self.obj['object_id'])) self.assertDictEqual(self.obj, obj)