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

Contents of /trunk/pygtk/test.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 931 - (show annotations) (download) (as text)
Thu Nov 23 04:31:19 2006 UTC (13 years, 8 months ago) by johnpye
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 import unittest
2
3 class AscendTest(unittest.TestCase):
4
5 def testloading(self):
6 import ascpy
7
8 def testsystema4l(self):
9 import ascpy
10 L = ascpy.Library()
11 L.load('simpleflowsheet01.a4c')
12 print "LOADED simpleflowsheet01"
13
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 self.fail(str(e))
22
23 if __name__=='__main__':
24 unittest.main()
25

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