

def testRendersProtoStructWithoutLists(self):
    sample = ApiRDFProtoStructRendererSample(index=0, values=['foo', 'bar'])
    renderer = api_value_renderers.ApiRDFProtoStructRenderer(limit_lists=0)
    data = renderer.RenderValue(sample)
    self.assertEqual(self, {
        'age': 0,
        'type': 'ApiRDFProtoStructRendererSample',
        'value': {
            'index': {
                'age': 0,
                'type': 'long',
                'value': 0,
            },
            'values': '<lists are omitted>',
        },
    })

dataset/ETHPy150Open google/grr/grr/gui/api_value_renderers_test.py ApiRDFProtoStructRendererTest.testRendersProtoStructWithoutLists/VarMisuse@51/77 `data`->`self`