Exemplo n.º 1
0
def test_abbreviated_repr_list():
    assert abbreviated_repr(['some really, really long string'
                             ]) == "['some really, ...]"
Exemplo n.º 2
0
def test_abbreviated_repr_ordereddict():
    assert (abbreviated_repr(
        OrderedDict([('key', 'some really, really long string')
                     ])) == "OrderedDict([('key', ...])")
Exemplo n.º 3
0
def test_abbreviated_repr_dict():
    assert abbreviated_repr({'key': 'some really, really long string'
                             }) == "{'key': 'some really, ...}"