File: testdriver

package info (click to toggle)
kcov 43%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,600 kB
  • sloc: cpp: 12,617; ansic: 2,379; python: 2,001; sh: 333; makefile: 133; javascript: 65; xml: 7; asm: 4
file content (28 lines) | stat: -rwxr-xr-x 523 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python

import sys
import unittest

class testcase (unittest.TestCase):

    def setUp(self):
        print('in setUp()')
        self.unitundertest = unitundertest.testme()

    def testMethod1(self):
        print('in testcase.testMethod1()')
        expected=4
        result= self.unitundertest.testmethod1(2,2)

        self.assertEqual(expected,result)


if __name__ == '__main__':
    sys.path.append('.')

    try:
        import unitundertest
    except:
        print('exception')

    unittest.main()