@patch('instructionparsers.xmlparser.XmlParser.instructionspath')
def test__get_first_instruction_element(self, path_mock):
    '\n        Should return the xml element with the title "Root".\n        '
    from instructionparsers.xmlparser import XmlParser
    instructions = './instructions/valid_instructions.xml'
    xml_parser = XmlParser(instructionspath=instructions, protocol=None)
    xml_parser._instructionspath = instructions
    element = xml_parser._get_first_instruction_element()
    self.assertIsInstance(element, Element)
    self.assertEqual(element.localName, 'Root')
Should return the xml element with the title "Root".
@patch('instructionparsers.xmlparser.XmlParser.instructionspath')
def test__get_first_instruction_element(self, path_mock):
    '\n        \n        '
    from instructionparsers.xmlparser import XmlParser
    instructions = './instructions/valid_instructions.xml'
    xml_parser = XmlParser(instructionspath=instructions, protocol=None)
    xml_parser._instructionspath = instructions
    element = xml_parser._get_first_instruction_element()
    self.assertIsInstance(element, Element)
    self.assertEqual(element.localName, 'Root')