/[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 690 by johnpye, Thu Jun 22 00:48:31 2006 UTC revision 932 by johnpye, Thu Nov 23 13:23:33 2006 UTC
# Line 2  import unittest Line 2  import unittest
2    
3  class AscendTest(unittest.TestCase):  class AscendTest(unittest.TestCase):
4    
5        def testIDA(self):
6            import ascpy
7            try:
8                L = ascpy.Library()
9                L.load('johnpye/shm.a4c')
10                M = L.findType('shm').getSimulation('sim')
11                M.solve(ascpy.Solver("QRSlv"),ascpy.SolverReporter())
12            except Exception,e:
13                self.fail(str(e))
14    
15      def testloading(self):      def testloading(self):
16          import ascpy          import ascpy
17    
# Line 9  class AscendTest(unittest.TestCase): Line 19  class AscendTest(unittest.TestCase):
19          import ascpy          import ascpy
20          L = ascpy.Library()          L = ascpy.Library()
21          L.load('simpleflowsheet01.a4c')          L.load('simpleflowsheet01.a4c')
22          print "LOADED simpleflowsheet01"  
23        def testatomsa4l(self):
24            import ascpy
25            L = ascpy.Library()
26            #L.clear();
27            L.load('atoms.a4l')
28    
29        def testlog10(self):
30            import ascpy
31            L = ascpy.Library()
32            L.load('johnpye/testlog10.a4c')
33            T = L.findType('testlog10')
34            M = T.getSimulation('sim')
35            M.solve(ascpy.Solver("QRSlv"),ascpy.SolverReporter())      
36            M.run(T.getMethod('self_test'))    
37    
38    class NotToBeTested:
39        def nothing(self):
40            pass
41    
42                    
43  if __name__=='__main__':  if __name__=='__main__':
44      unittest.main()      unittest.main()
   

Legend:
Removed from v.690  
changed lines
  Added in v.932

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