Пример #1
0
 def testBlocksInComment_CommentWithSingleTest(self):
     comment = """
     /**
      * A Boring Text
      * More Boring test
      *
      * @test(Test1)
      * @endtest
      */
     """
     tests   = [t for t in dtpp.test_blocks_in_comment(comment)]
     self.assertEqual(1, len(tests))
     self.assertEqual("", tests[0].test_body)
Пример #2
0
 def testBlocksInComment_CommentWithoutTests(self):
     comment = "/* Boring Text */"
     tests   = [t for t in dtpp.test_blocks_in_comment(comment)]
     self.assertEqual(0, len(tests))