def test_repr(self): """Return formatted string with full name.""" sec = Section(name='Polkadot', common_name=CommonName(name='Foxglove')) assert sec.__repr__() == '<Section "Polkadot Foxglove">'