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

Annotation of /trunk/test.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 689 - (hide annotations) (download) (as text)
Thu Jun 22 00:19:54 2006 UTC (13 years, 5 months ago) by johnpye
Original Path: trunk/pygtk/test.py
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 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     S = L.getType('test_controller').getSimulation('mysim')
13     print "LOADED test_controller"
14    
15 johnpye 669 if __name__=='__main__':
16     unittest.main()
17    

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