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

Contents of /trunk/pygtk/test.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 689 - (show annotations) (download) (as text)
Thu Jun 22 00:19:54 2006 UTC (14 years, 4 months ago) by johnpye
File MIME type: text/x-python
File size: 330 byte(s)
Added suppression of 'unexpected char' (scanner) and 'generic' (parser) errors.
Removed 'DIFF' stuff from parser and scanner. (It's still in expr_types.h and elsewhere)
Added test case to detect this scanner problem.
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 S = L.getType('test_controller').getSimulation('mysim')
13 print "LOADED test_controller"
14
15 if __name__=='__main__':
16 unittest.main()
17

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