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

Contents of /trunk/pygtk/test.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 930 - (show annotations) (download) (as text)
Wed Nov 22 13:09:09 2006 UTC (17 years, 9 months ago) by johnpye
File MIME type: text/x-python
File size: 452 byte(s)
solve.py raises ImportError if 'browser' object is not available (right approach?)
Freeing some variables in dsgsat2.a4c.
Returing Py_None from extpy routine in 'browser' object not defined (eg during non-GUI unit testing)
Error reporting from extpy import handler (ongoing)
Timeout in versioncheck (when server unavailable)
A little more tinkering with IDA.
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 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