class documentation

class FindMachinesViaWrapperTests(_WritesPythonModules): (source)

View In Hierarchy

findMachinesViaWrapper recursively yields FQPN, MethodicalMachine pairs in and under a given twisted.python.modules.PythonModule or twisted.python.modules.PythonAttribute.

Method setUp Undocumented
Method test_descendsIntoPackages findMachinesViaWrapper descends into packages to discover machines.
Method test_ignoresImportedClass When given a twisted.python.modules.PythonAttribute that refers to a class imported from another module, any MethodicalMachines on that class are ignored.
Method test_infiniteLoop findMachinesViaWrapper ignores infinite loops.
Method test_yieldsMachine When given a twisted.python.modules.PythonAttribute that refers directly to a MethodicalMachine, findMachinesViaWrapper yields that machine and its FQPN.
Method test_yieldsMachineInClass When given a twisted.python.modules.PythonAttribute that refers to a class that contains a MethodicalMachine as a class variable, findMachinesViaWrapper yields that machine and its FQPN.
Method test_yieldsMachineInClassInModule When given a twisted.python.modules.PythonModule that refers to the original module of a class containing a MethodicalMachine, findMachinesViaWrapper yields that machine and its FQPN.
Method test_yieldsMachineInModule When given a twisted.python.modules.PythonModule that refers to a module that contains a MethodicalMachine, findMachinesViaWrapper yields that machine and its FQPN.
Method test_yieldsMachineInNestedClass When given a twisted.python.modules.PythonAttribute that refers to a nested class that contains a MethodicalMachine as a class variable, findMachinesViaWrapper yields that machine and its FQPN.
Method test_yieldsMachineInNestedClassInModule When given a twisted.python.modules.PythonModule that refers to the original module of a nested class containing a MethodicalMachine, findMachinesViaWrapper yields that machine and its FQPN.
Method test_yieldsTypeMachine When given a twisted.python.modules.PythonAttribute that refers directly to a TypeMachine, findMachinesViaWrapper yields that machine and its FQPN.
Instance Variable findMachinesViaWrapper Undocumented

Inherited from _WritesPythonModules:

Method attributesAsDict Undocumented
Method loadModuleAsDict Undocumented
Method makeImportable Undocumented
Method makeModule Undocumented
Method makeModuleAsDict Undocumented
Method tearDown Undocumented
Method writeSourceInto Undocumented
Instance Variable FilePath Undocumented
Instance Variable getModule Undocumented
Instance Variable originalSysModules Undocumented
Instance Variable pathDir Undocumented
Instance Variable PythonPath Undocumented
Instance Variable savedSysPath Undocumented
def test_descendsIntoPackages(self): (source)

findMachinesViaWrapper descends into packages to discover machines.

def test_ignoresImportedClass(self): (source)

When given a twisted.python.modules.PythonAttribute that refers to a class imported from another module, any MethodicalMachines on that class are ignored.

This behavior ensures that a machine is only discovered on a class when visiting the module where that class was defined.

def test_infiniteLoop(self): (source)

findMachinesViaWrapper ignores infinite loops.

Note this test can't fail - it can only run forever!

def test_yieldsMachine(self): (source)

When given a twisted.python.modules.PythonAttribute that refers directly to a MethodicalMachine, findMachinesViaWrapper yields that machine and its FQPN.

def test_yieldsMachineInClass(self): (source)

When given a twisted.python.modules.PythonAttribute that refers to a class that contains a MethodicalMachine as a class variable, findMachinesViaWrapper yields that machine and its FQPN.

def test_yieldsMachineInClassInModule(self): (source)

When given a twisted.python.modules.PythonModule that refers to the original module of a class containing a MethodicalMachine, findMachinesViaWrapper yields that machine and its FQPN.

def test_yieldsMachineInModule(self): (source)

When given a twisted.python.modules.PythonModule that refers to a module that contains a MethodicalMachine, findMachinesViaWrapper yields that machine and its FQPN.

def test_yieldsMachineInNestedClass(self): (source)

When given a twisted.python.modules.PythonAttribute that refers to a nested class that contains a MethodicalMachine as a class variable, findMachinesViaWrapper yields that machine and its FQPN.

def test_yieldsMachineInNestedClassInModule(self): (source)

When given a twisted.python.modules.PythonModule that refers to the original module of a nested class containing a MethodicalMachine, findMachinesViaWrapper yields that machine and its FQPN.

def test_yieldsTypeMachine(self): (source)

When given a twisted.python.modules.PythonAttribute that refers directly to a TypeMachine, findMachinesViaWrapper yields that machine and its FQPN.

findMachinesViaWrapper = (source)

Undocumented