@patch('businesslogic.placeholders.Placeholder._initialize_global_placeholders')
@patch('instructionparsers.xmlparser.XmlParser._init_instructions')
@patch('instructionparsers.xmlparser.path.isfile')
@patch('instructionparsers.xmlparser.XmlParser._validate_schema')
@patch('instructionparsers.xmlparser.XmlParser._initializemetadata')
def test_instructionspath_instruction_file_not_there(self, placeholder_mock, xmlparser_mock, isfile_mock, schema_mock, initmetadata_mock):
    '\n        Will raise FileNotFound exeption.\n        '
    from instructionparsers.xmlparser import XmlParser
    expected_file = 'test_instructions.xml'
    isfile_mock.return_value = True
    xml_parser = XmlParser(instructionspath=expected_file, protocol=None)
    isfile_mock.return_value = False
    with self.assertRaises(FileNotFoundError):
        xml_parser.instructionspath = expected_file
Will raise FileNotFound exeption.
@patch('businesslogic.placeholders.Placeholder._initialize_global_placeholders')
@patch('instructionparsers.xmlparser.XmlParser._init_instructions')
@patch('instructionparsers.xmlparser.path.isfile')
@patch('instructionparsers.xmlparser.XmlParser._validate_schema')
@patch('instructionparsers.xmlparser.XmlParser._initializemetadata')
def test_instructionspath_instruction_file_not_there(self, placeholder_mock, xmlparser_mock, isfile_mock, schema_mock, initmetadata_mock):
    '\n        \n        '
    from instructionparsers.xmlparser import XmlParser
    expected_file = 'test_instructions.xml'
    isfile_mock.return_value = True
    xml_parser = XmlParser(instructionspath=expected_file, protocol=None)
    isfile_mock.return_value = False
    with self.assertRaises(FileNotFoundError):
        xml_parser.instructionspath = expected_file