@patch('instructionparsers.xmlparser.XmlParser.instructionspath')
def test__init_instructions_valid_instructions(self, path_mock):
    '\n        Should initialize collectors for all XML elements which have the attribute "module".\n        '
    from instructionparsers.xmlparser import XmlParser
    from instructionparsers.wrapper import InstructionWrapper
    instructions = './instructions/valid_instructions.xml'
    xml_parser = XmlParser(instructionspath=instructions, protocol=None)
    xml_parser._instructionspath = instructions
    instructionstree = xml_parser._init_instructions()
    self.assertIsInstance(instructionstree, InstructionWrapper)
Should initialize collectors for all XML elements which have the attribute "module".
@patch('instructionparsers.xmlparser.XmlParser.instructionspath')
def test__init_instructions_valid_instructions(self, path_mock):
    '\n        \n        '
    from instructionparsers.xmlparser import XmlParser
    from instructionparsers.wrapper import InstructionWrapper
    instructions = './instructions/valid_instructions.xml'
    xml_parser = XmlParser(instructionspath=instructions, protocol=None)
    xml_parser._instructionspath = instructions
    instructionstree = xml_parser._init_instructions()
    self.assertIsInstance(instructionstree, InstructionWrapper)