Example #1
0
 def test_eliding(self, elidelength, text, expected):
     """Test eliding."""
     assert utils.compact_text(text, elidelength) == expected
Example #2
0
 def test_eliding(self, elidelength, text, expected):
     """Test eliding."""
     assert utils.compact_text(text, elidelength) == expected
Example #3
0
 def test_compact_text(self, text, expected):
     """Test folding of newlines."""
     assert utils.compact_text(text) == expected
Example #4
0
 def test_compact_text(self, text, expected):
     """Test folding of newlines."""
     assert utils.compact_text(text) == expected