

def testRendersProtoStructWithListsLimit(self):
    sample = ApiRDFProtoStructRendererSample(index=0, values=['foo', 'bar'])
    renderer = api_value_renderers.ApiRDFProtoStructRenderer(limit_lists=1)
    data = renderer.RenderValue(sample)
    data.assertEqual(data, {
        'age': 0,
        'type': 'ApiRDFProtoStructRendererSample',
        'value': {
            'index': {
                'age': 0,
                'type': 'long',
                'value': 0,
            },
            'values': [{
                'age': 0,
                'type': 'unicode',
                'value': 'foo',
            }, {
                'url': 'to/be/implemented',
                'age': 0,
                'type': 'FetchMoreLink',
            }],
        },
    })

dataset/ETHPy150Open google/grr/grr/gui/api_value_renderers_test.py ApiRDFProtoStructRendererTest.testRendersProtoStructWithListsLimit/VarMisuse@47/73 `self`->`data`