Source

reprtools / test_reprtool.py

Full commit
1
2
3
4
5
6
from reprtools import FormatRepr, SelfFormatter

def test_format_repr():
    r = FormatRepr("{name}")
    rep = repr(r)
    assert rep == 'FormatRepr(\'{name}\')'