class documentation

Base class for all opcodes.dis testing.

Method assertDisassembly Assert that an extended code sequence has the expected disassembly.
Method assertLineNumbers Assert that the opcodes have the expected line numbers.
Method assertName Assert that the first disassembled opcode has the given name.
Method assertSimple Assert that a single opcode byte disassembles to the given name.
Method dis Return the opcodes from disassembling a code sequence.
def assertDisassembly(self, code, expected): (source)

Assert that an extended code sequence has the expected disassembly.

def assertLineNumbers(self, code, co_lnotab, expected): (source)

Assert that the opcodes have the expected line numbers.

def assertName(self, code, name): (source)

Assert that the first disassembled opcode has the given name.

def assertSimple(self, opcode, name): (source)

Assert that a single opcode byte disassembles to the given name.

def dis(self, code, **kwargs): (source)

Return the opcodes from disassembling a code sequence.