Oops -- Lib/Test should be Lib/test, of course!
[python/dscho.git] / Mac / Lib / test / test_suite.py
blob2aa690d20b10ee3a6e1ec0a017489e17f63f7c9b
2 # Test of generated AE modules.
4 import sys
5 import macfs
7 import aetools
8 from AppleScript_Suite import AppleScript_Suite
9 from Required_Suite import Required_Suite
10 from Standard_Suite import Standard_Suite
12 class ScriptableEditor(aetools.TalkTo, AppleScript_Suite, Required_Suite,
13 Standard_Suite):
15 def __init__(self):
16 aetools.TalkTo.__init__(self, 'quil')
17 self.activate()
19 app = ScriptableEditor()
20 rv = app.open(macfs.FSSpec(sys.argv[0]))
21 print 'Opened', sys.argv[0]
22 print 'Return value:', rv
23 rv = app.get(aetools.Word(10, aetools.Document(1)))
24 print 'Got word 10 doc 1:', rv
25 sys.exit(1)