def test_eliding(self, elidelength, text, expected): """Test eliding.""" assert utils.compact_text(text, elidelength) == expected
def test_compact_text(self, text, expected): """Test folding of newlines.""" assert utils.compact_text(text) == expected