コード例 #1
0
ファイル: test.py プロジェクト: stxRand/pythonpath
    def test_nokaut_main1(self):
        """testing nokaut class through main function"""

        try:
            nokaut.main()
        except Exception, err:
            self.fail('unexpected exception: %s' % err)
コード例 #2
0
ファイル: test.py プロジェクト: stxRand/pythonpath
    def test_nokaut_main2(self):
        """testing nokaut class through main function"""

        try:
            nokaut.main()
        except SystemExit, err:
            self.assertEquals(type(err), type(SystemExit()))
            self.assertEquals(err.code, 2)
コード例 #3
0
ファイル: test.py プロジェクト: stxRand/pythonpath
 def test_nokaut_main3(self):
     try:
         nokaut.main()
     except SystemExit, err:
         self.assertEquals(type(err), type(SystemExit()))
         self.assertEquals(err.code, 1)