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