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