Esempio n. 1
0
 def test_truncate(self):
     """Test truncate because msh is too long."""
     self.assertEqual('abc\n...5 characters truncated...\nijk',
                      logs.truncate('abcdefghijk', 6))
Esempio n. 2
0
 def test_not_truncate(self):
     """Test msg is not too long."""
     self.assertEqual('abcd', logs.truncate('abcd', 4))