class documentation

class WrapFQPNTests(TestCase): (source)

View In Hierarchy

Tests that ensure wrapFQPN loads the twisted.python.modules.PythonModule or twisted.python.modules.PythonAttribute for a given FQPN.

Method assertAttributeWrapperRefersTo Assert that a twisted.python.modules.PythonAttribute refers to a particular Python object.
Method assertModuleWrapperRefersTo Assert that a twisted.python.modules.PythonModule refers to a particular Python module.
Method setUp Undocumented
Method test_failsWithBadDotting " wrapFQPN raises InvalidFQPN when given a badly-dotted FQPN. (e.g., x..y).
Method test_failsWithEmptyFQPN wrapFQPN raises InvalidFQPN when given an empty string.
Method test_failsWithMissingSingleModuleOrPackage wrapFQPN raises NoModule when given a dotless FQPN that does not refer to a module or package.
Method test_failsWithMultiplePackagesMissingModuleOrPackage wrapFQPN raises NoObject when given an FQPN that contains a missing attribute, module, or package.
Method test_multiplePackages wrapFQPN returns a twisted.python.modules.PythonModule referring to the deepest package described by dotted FQPN.
Method test_multiplePackagesFinalModule wrapFQPN returns a twisted.python.modules.PythonModule referring to the deepest module described by dotted FQPN.
Method test_multiplePackagesObject wrapFQPN returns a twisted.python.modules.PythonAttribute referring to the deepest object described by an FQPN, descending through several packages.
Method test_singleModule wrapFQPN returns a twisted.python.modules.PythonModule referring to the single module a dotless FQPN describes.
Method test_singleModuleObject wrapFQPN returns a twisted.python.modules.PythonAttribute referring to the deepest object an FQPN names, traversing one module.
Method test_singlePackage wrapFQPN returns a twisted.python.modules.PythonModule referring to the single package a dotless FQPN describes.
Instance Variable InvalidFQPN Undocumented
Instance Variable NoModule Undocumented
Instance Variable NoObject Undocumented
Instance Variable PythonAttribute Undocumented
Instance Variable PythonModule Undocumented
Instance Variable wrapFQPN Undocumented
def assertAttributeWrapperRefersTo(self, attributeWrapper, fqpn, obj): (source)

Assert that a twisted.python.modules.PythonAttribute refers to a particular Python object.

def assertModuleWrapperRefersTo(self, moduleWrapper, module): (source)

Assert that a twisted.python.modules.PythonModule refers to a particular Python module.

def setUp(self): (source)

Undocumented

def test_failsWithBadDotting(self): (source)

" wrapFQPN raises InvalidFQPN when given a badly-dotted FQPN. (e.g., x..y).

def test_failsWithEmptyFQPN(self): (source)

wrapFQPN raises InvalidFQPN when given an empty string.

def test_failsWithMissingSingleModuleOrPackage(self): (source)

wrapFQPN raises NoModule when given a dotless FQPN that does not refer to a module or package.

def test_failsWithMultiplePackagesMissingModuleOrPackage(self): (source)

wrapFQPN raises NoObject when given an FQPN that contains a missing attribute, module, or package.

def test_multiplePackages(self): (source)

wrapFQPN returns a twisted.python.modules.PythonModule referring to the deepest package described by dotted FQPN.

def test_multiplePackagesFinalModule(self): (source)

wrapFQPN returns a twisted.python.modules.PythonModule referring to the deepest module described by dotted FQPN.

def test_multiplePackagesObject(self): (source)

wrapFQPN returns a twisted.python.modules.PythonAttribute referring to the deepest object described by an FQPN, descending through several packages.

def test_singleModule(self): (source)

wrapFQPN returns a twisted.python.modules.PythonModule referring to the single module a dotless FQPN describes.

def test_singleModuleObject(self): (source)

wrapFQPN returns a twisted.python.modules.PythonAttribute referring to the deepest object an FQPN names, traversing one module.

def test_singlePackage(self): (source)

wrapFQPN returns a twisted.python.modules.PythonModule referring to the single package a dotless FQPN describes.

InvalidFQPN = (source)

Undocumented

NoModule = (source)

Undocumented

NoObject = (source)

Undocumented

PythonAttribute = (source)

Undocumented

PythonModule = (source)

Undocumented

wrapFQPN = (source)

Undocumented