# Path: solvebio/resource/solveobject.py
# def convert_to_solve_object(resp, **kwargs):
#     from . import types
# 
#     _client = kwargs.pop('client', None)
# 
#     if isinstance(resp, list):
#         return [convert_to_solve_object(i, client=_client) for i in resp]
#     elif isinstance(resp, dict) and not isinstance(resp, SolveObject):
#         resp = resp.copy()
#         klass_name = resp.get('class_name')
#         if isinstance(klass_name, six.string_types):
#             klass = types.get(klass_name, SolveObject)
#         else:
#             klass = SolveObject
#         return klass.construct_from(resp, client=_client)
#     else:
#         return resp


from solvebio.resource.solveobject import convert_to_solve_object
    from solvebio.resource import Object
        self.object = {
            'id': data.get('id', 100),
            'class_name': self.class_name
        }

    def json(self):
        return self.object

    def create(self, *args, **kwargs):
        return convert_to_solve_object(self.object)

    def save(self, *args, **kwargs):
        return self.create(*args, **kwargs)

    def retrieve(self, r_id, *args, **kwargs):
        obj = self.create()
        obj.id = r_id
        return obj

    def _retrieve_helper(self, model_name, field_name, error_value,
                         *args, **kwargs):
        obj = self.create()
        for k, v in kwargs.items():
            obj[k] = v

        return obj

    def all(self, *args, **kwargs):
        class ExtendedList(list):
            def solve_objects(self):

# Path: solvebio/resource/solveobject.py
# def convert_to_solve_object(resp, **kwargs):
#     from . import types
# 
#     _client = kwargs.pop('client', None)
# 
#     if isinstance(resp, list):
#         return [convert_to_solve_object(i, client=_client) for i in resp]
#     elif isinstance(resp, dict) and not isinstance(resp, SolveObject):
#         resp = resp.copy()
#         klass_name = resp.get('class_name')
#         if isinstance(klass_name, six.string_types):
#             klass = types.get(klass_name, SolveObject)
#         else:
#             klass = SolveObject
#         return klass.construct_from(resp, client=_client)
#     else:
#         return resp


# Path: solvebio/test/client_mocks.py
from solvebio.resource.solveobject import convert_to_solve_object
    from solvebio.resource import Object

        self.object = {
            'id': data.get('id', 100),
            'class_name': self.class_name
        }

    def json(self):
        return self.object

    def create(self, *args, **kwargs):
        return convert_to_solve_object(self.object)

    def save(self, *args, **kwargs):
        return self.create(*args, **kwargs)

    def retrieve(self, r_id, *args, **kwargs):
        obj = self.create()
        obj.id = r_id
        return obj

    def _retrieve_helper(self, model_name, field_name, error_value,
                         *args, **kwargs):
        obj = self.create()
        for k, v in kwargs.items():
            obj[k] = v

        return obj

    def all(self, *args, **kwargs):
        class ExtendedList(list):
            def solve_objects(self):

                return convert_to_solve_object(self)