def test_paragraphsub_ends_with_line_breaks(self):
     """Test that the result ends with a line break"""
     test_str = "test str"
     formatted_str = PrintFormatter.paragraphsub(test_str)
     str_length = len(formatted_str)
     self.assertTrue(str_length > 2)
     self.assertEqual(formatted_str[str_length - 1], '\n')
 def test_paragraphsub_preserves_capitalization(self):
     """Test that capitalization is preserved"""
     test_str = "tEst brOKen str"
     formatted_str = PrintFormatter.paragraphsub(test_str)
     str_length = len(formatted_str)
     self.assertEqual(formatted_str, "        tEst brOKen str\n")
 def test_paragraphsub_removes_internal_line_breaks(self):
     """Test that inner line breaks are replaced by spaces"""
     test_str = "test\nbroken\nstr"
     formatted_str = PrintFormatter.paragraphsub(test_str)
     str_length = len(formatted_str)
     self.assertEqual(formatted_str, "        test broken str\n")
 def test_paragraphsub_containing_formatting(self):
     """Test that internal formatting marks are preserved"""
     test_str = "test " + Color.BOLD + "bold" + Color.END + " str"
     formatted_str = PrintFormatter.paragraphsub(test_str)
     self.assertEqual(formatted_str,
                      "        test \033[1mbold\033[0m str\n")
 def test_paragraphsub_empty_string(self):
     """Test that the result is an empty string for an empty string"""
     test_str = ""
     formatted_str = PrintFormatter.paragraphsub(test_str)
     self.assertEqual(formatted_str, "")
 def test_paragraphsub_is_indented(self):
     """Test that the result format is properly indented"""
     test_str = "test str"
     formatted_str = PrintFormatter.paragraphsub(test_str)
     str_length = len(formatted_str)
     self.assertEqual(formatted_str, "        test str\n")