Пример #1
0
 def testExtractCommentPrefix(self):
     self.assertEquals('   *',
                       template_helpers._ExtractCommentPrefix('   * hello'))
     self.assertEquals('   *',
                       template_helpers._ExtractCommentPrefix('   *hello'))
     self.assertEquals('//',
                       template_helpers._ExtractCommentPrefix('// hello'))
     self.assertEquals('#',
                       template_helpers._ExtractCommentPrefix('# hello'))
     self.assertEquals('  #',
                       template_helpers._ExtractCommentPrefix('  # hello'))
 def testExtractCommentPrefix(self):
   self.assertEquals('   *',
                     template_helpers._ExtractCommentPrefix('   * hello'))
   self.assertEquals('   *',
                     template_helpers._ExtractCommentPrefix('   *hello'))
   self.assertEquals('//',
                     template_helpers._ExtractCommentPrefix('// hello'))
   self.assertEquals('#',
                     template_helpers._ExtractCommentPrefix('# hello'))
   self.assertEquals('  #',
                     template_helpers._ExtractCommentPrefix('  # hello'))