def test__get_placeholder_name(self):
    '\n        If XmlElement contains attribute "placeholder" method should return value of this attribute.\n        '
    from instructionparsers.xmlparser import XmlParser
    document = Document()
    element = document.createElement('Demo')
    element.setAttribute(XmlParser.PLACEHOLDERNAME_ATTRIBUTE, 'test')
    result = XmlParser._get_placeholder_name(element)
    self.assertEqual(result, 'test')
If XmlElement contains attribute "placeholder" method should return value of this attribute.
def test__get_placeholder_name(self):
    '\n        \n        '
    from instructionparsers.xmlparser import XmlParser
    document = Document()
    element = document.createElement('Demo')
    element.setAttribute(XmlParser.PLACEHOLDERNAME_ATTRIBUTE, 'test')
    result = XmlParser._get_placeholder_name(element)
    self.assertEqual(result, 'test')