'Test folding of newlines.'

@pytest.mark.parametrize('text,    expected', [('foo\nbar', 'foobar'), ('        foo        \n        bar        ', 'foobar'), ('\nfoo\n', 'foo')], ids=repr)
def test_compact_text(self, text, expected):

    assert (utils.compact_text(text) == expected)
