@patch('instructionparsers.xmlparser.XmlParser.instructionspath')
def test__initializemetadata_valid_instructions(self, path_mock):
    '\n        Should initialize member \'metadata\' with all elements which have the attribute "title".\n        '
    metadata = ('Examiner', 'Assignment', 'Client', 'Description of Artefact', 'Task Description')
    from instructionparsers.xmlparser import XmlParser
    instructions = './instructions/valid_instructions.xml'
    xml_parser = XmlParser(instructionspath=instructions, protocol=None)
    xml_parser._instructionspath = instructions
    xml_parser._initializemetadata()
    for data in metadata:
        with self.subTest(data):
            self.assertIsNotNone(xml_parser.metadata[data])
Should initialize member 'metadata' with all elements which have the attribute "title".
@patch('instructionparsers.xmlparser.XmlParser.instructionspath')
def test__initializemetadata_valid_instructions(self, path_mock):
    '\n        Should initialize member \'metadata\' with all elements which have the attribute "title".\n        '
    metadata = ('Examiner', 'Assignment', 'Client', 'Description of Artefact', 'Task Description')
    from instructionparsers.xmlparser import XmlParser
    instructions = './instructions/valid_instructions.xml'
    xml_parser = XmlParser(instructionspath=instructions, protocol=None)
    xml_parser._instructionspath = instructions
    xml_parser._initializemetadata()
    for data in metadata:
        with self.subTest(data):
            self.assertIsNotNone(xml_parser.metadata[data])