def testCommentFragment(self):
     value = '123456789 ' * 15
     indent = 6
     # What we expect is that 9 of the sequences above will fit on the first
     # line, then we wrap. It's only 89 because the trailing space is trimmed.
     expected = value[:89] + '\n' + (' ' * indent) + ' * ' + value[90:-1]
     self.assertEquals(
         expected, template_helpers.java_comment_fragment(value, indent))
 def testCommentFragment(self):
   value = '123456789 ' * 15
   indent = 6
   # What we expect is that 9 of the sequences above will fit on the first
   # line, then we wrap. It's only 89 because the trailing space is trimmed.
   expected = value[:89] + '\n' + (' ' * indent) + ' * ' + value[90:-1]
   self.assertEquals(expected,
                     template_helpers.java_comment_fragment(value, indent))