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

Annotation of /trunk/test.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 931 - (hide annotations) (download) (as text)
Thu Nov 23 04:31:19 2006 UTC (13 years, 8 months ago) by johnpye
Original Path: trunk/pygtk/test.py
File MIME type: text/x-python
File size: 457 byte(s)
Added 'error_reporter_tree' that can organise error messages/output into a structured hierarchy.
1 johnpye 669 import unittest
2    
3     class AscendTest(unittest.TestCase):
4    
5     def testloading(self):
6     import ascpy
7    
8 johnpye 689 def testsystema4l(self):
9     import ascpy
10     L = ascpy.Library()
11     L.load('simpleflowsheet01.a4c')
12 johnpye 690 print "LOADED simpleflowsheet01"
13 johnpye 930
14     def testIDA(self):
15     import ascpy
16     try:
17     L = ascpy.Library()
18     L.load('johnpye/shm.a4c')
19     M = L.findType('shm').getSimulation('sim')
20     except Exception,e:
21 johnpye 931 self.fail(str(e))
22 johnpye 689
23 johnpye 669 if __name__=='__main__':
24     unittest.main()
25    

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