1 # Copyright (c) Twisted Matrix Laboratories.
2 # See LICENSE for details.
4 from twisted.trial import unittest
5 from twisted.python.runtime import platformType
8 class AtLeastImportTestCase(unittest.TestCase):
10 I test that there are no syntax errors which will not allow importing.
13 failureException = ImportError
17 Test importing other miscellaneous modules.
19 from twisted import copyright
21 def test_persisted(self):
23 Test importing persisted.
25 from twisted.persisted import dirdbm
26 from twisted.persisted import styles
28 def test_internet(self):
30 Test importing internet.
32 from twisted.internet import tcp
33 from twisted.internet import main
34 from twisted.internet import abstract
35 from twisted.internet import udp
36 from twisted.internet import protocol
37 from twisted.internet import defer
41 Test internet modules for unix.
43 from twisted.internet import stdio
44 from twisted.internet import process
45 from twisted.internet import unix
47 if platformType != "posix":
48 test_unix.skip = "UNIX-only modules"
50 def test_spread(self):
52 Test importing spreadables.
54 from twisted.spread import pb
55 from twisted.spread import jelly
56 from twisted.spread import banana
57 from twisted.spread import flavors
59 def test_twistedPython(self):
61 Test importing C{twisted.python}.
63 from twisted.python import hook
64 from twisted.python import log
65 from twisted.python import reflect
66 from twisted.python import usage
68 def test_protocols(self):
70 Test importing protocols.
72 from twisted.protocols import basic
73 from twisted.protocols import ftp
74 from twisted.protocols import telnet
75 from twisted.protocols import policies