示例#1
0
class ExternalProgramType(unittest.TestCase):
    def setUp(self):
        from pydsl.Grammar.Checker import ExternalProgramChecker
        self.g1 = ExternalProgramChecker(["echo"," "])

    def testCheck(self):
        self.assertTrue(self.g1.check("123"))
示例#2
0
 def setUp(self):
     from pydsl.Grammar.Checker import ExternalProgramChecker
     self.g1 = ExternalProgramChecker(["echo"," "])