def create_instance(field):

    class Dummy(object):
        attr = field
        attr._name = 'attr'

    return Dummy()
Create an instance of a dummy class for testing fields.
dataset/ETHPy150Open mopidy/mopidy/tests/models/test_fields.py/create_instance