a2e03f91e6c883d65859629c8ab1ee417b413d72
# Copyright (C) 2003 Python Software Foundation
from test
import test_support
class TestScriptpackages(unittest
.TestCase
):
def _test_scriptpackage(self
, package
, testobject
=1):
# Check that we can import the package
mod
= __import__(package
)
# Test that we can get the main event class
klass
= getattr(mod
, package
)
# Test that we can instantiate that class
# Test that we can get an application object
def test__builtinSuites(self
):
self
._test
_scriptpackage
('_builtinSuites', testobject
=0)
def test_StdSuites(self
):
self
._test
_scriptpackage
('StdSuites')
def test_SystemEvents(self
):
self
._test
_scriptpackage
('SystemEvents')
self
._test
_scriptpackage
('Finder')
self
._test
_scriptpackage
('Terminal')
self
._test
_scriptpackage
('Netscape')
self
._test
_scriptpackage
('Explorer')
def test_CodeWarrior(self
):
self
._test
_scriptpackage
('CodeWarrior')
test_support
.run_unittest(TestScriptpackages
)
if __name__
== '__main__':