Пример #1
0
def suite() -> unittest.TestSuite:
    return unittest.TestSuite([
        no_contents.suite(),
        contents_from_string.suite(),
        contents_from_file.suite(),
        contents_from_program.suite(),
        contents_from_symbol.suite(),
        suite_for_instruction_documentation(
            sut.TheInstructionDocumentation('instruction name')),
    ])
Пример #2
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(new_file.parts_parser(True)),
        new_file.TheInstructionDocumentation(instruction_name))