Ejemplo 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))
Ejemplo n.º 2
0
 def test_not_truncate(self):
     """Test msg is not too long."""
     self.assertEqual('abcd', logs.truncate('abcd', 4))