Exemple #1
0
class IPDLTestCase(unittest.TestCase):
    def __init__(self, ipdlargv, filename):
        unittest.TestCase.__init__(self, 'test')
        self.filename = filename
        self.compile = IPDLCompile(filename, ipdlargv)

    def test(self):
        self.compile.run()
        self.assertFalse(self.compile.exception(), self.mkFailMsg())
        self.checkPassed()

    def mkCustomMsg(self, msg):
        return '''
### Command: %s
### %s
### stderr:
%s''' % (' '.join(self.compile.argv), msg, self.compile.stderr)

    def mkFailMsg(self):
        return '''
### Command: %s
### stderr:
%s''' % (' '.join(self.compile.argv), self.compile.stderr)

    def shortDescription(self):
        return '%s test of "%s"' % (self.__class__.__name__, self.filename)
Exemple #2
0
class IPDLTestCase(unittest.TestCase):
    def __init__(self, ipdlargv, filename):
        unittest.TestCase.__init__(self, 'test')
        self.filename = filename
        self.compile = IPDLCompile(filename, ipdlargv)

    def test(self):
        self.compile.run()
        self.assertFalse(self.compile.exception(), self.mkFailMsg())
        self.checkPassed()

    def mkCustomMsg(self, msg):
        return '''
### Command: %s
### %s
### stderr:
%s''' % (' '.join(self.compile.argv), msg, self.compile.stderr)

    def mkFailMsg(self):
        return '''
### Command: %s
### stderr:
%s'''% (' '.join(self.compile.argv), self.compile.stderr)

    def shortDescription(self):
        return '%s test of "%s"'% (self.__class__.__name__, self.filename)
Exemple #3
0
 def __init__(self, ipdlargv, filename):
     unittest.TestCase.__init__(self, 'test')
     self.filename = filename
     self.compile = IPDLCompile(filename, ipdlargv)
Exemple #4
0
 def __init__(self, ipdlargv, filename):
     unittest.TestCase.__init__(self, 'test')
     self.filename = filename
     self.compile = IPDLCompile(filename, ipdlargv)