/[ascend]/trunk/pygtk/test.py
ViewVC logotype

Diff of /trunk/pygtk/test.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 966 by johnpye, Thu Dec 14 14:04:54 2006 UTC revision 967 by johnpye, Thu Dec 14 14:14:54 2006 UTC
# Line 4  import math Line 4  import math
4  import os, subprocess  import os, subprocess
5  import atexit  import atexit
6    
 class CUnit(unittest.TestCase):  
     def setUp(self):  
         self.cunitexe = "../base/generic/test/test"  
       
     def testcunittests(self):  
         res = os.system(self.cunitexe)  
         if res:  
             raise RuntimeError("CUnit tests failed (returned %d -- run %s for details)" % (res,self.cunitexe))  
         else:  
             print "CUnit returned %s" % res  
   
7  class Ascend(unittest.TestCase):  class Ascend(unittest.TestCase):
8    
9      def setUp(self):      def setUp(self):
# Line 269  class TestIntegrator(Ascend): Line 258  class TestIntegrator(Ascend):
258          I.solve()          I.solve()
259          assert 0          assert 0
260            
261    class CUnit(unittest.TestCase):
262        def setUp(self):
263            self.cunitexe = "../base/generic/test/test"
264        
265        def testcunittests(self):
266            res = os.system(self.cunitexe)
267            if res:
268                raise RuntimeError("CUnit tests failed (returned %d -- run %s for details)" % (res,self.cunitexe))
269            else:
270                print "CUnit returned %s" % res
271    
272  # move code above down here if you want to temporarily avoid testing it  # move code above down here if you want to temporarily avoid testing it
273  class NotToBeTested:  class NotToBeTested:
274      def nothing(self):      def nothing(self):

Legend:
Removed from v.966  
changed lines
  Added in v.967

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22