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

Annotation of /trunk/pygtk/test.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 930 - (hide annotations) (download) (as text)
Wed Nov 22 13:09:09 2006 UTC (13 years, 11 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 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     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