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