def test_multi_field_meta(self):
        '''Here we check for multifield specific stuff like the instance
related keys (keys which are related to the instance rather than the model).'''
        # get instance and field, the field has no data here
        models = self.mapper
        #
        obj, field = yield self.get_object_and_field()
        #
        self.assertTrue(field.field)
        self.assertEqual(field.field.model, self.model)
        self.assertEqual(field._pkvalue, obj.pkvalue())
        self.assertEqual(field.session, obj.session)
        #
        be = field.backend_structure()
        self.assertEqual(be.backend, models[self.model].backend)
        self.assertEqual(be.instance, field)
        #
        if be.backend.name == 'redis':
            yield self.check_redis_structure(obj, be)
dataset/ETHPy150Open lsbardel/python-stdnet/tests/all/multifields/struct.py/MultiFieldMixin.test_multi_field_meta/original