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