def test_02_Element(self): l_result = XML.get_any_field(self.m_fields, 'IntField') self.assertEqual(l_result, '246')
def test_03_Attribute(self): l_result = XML.get_any_field(self.m_fields, 'i1') self.assertEqual(l_result, '371')
def test_03_GetAnyField_Missing(self): l_field = XML.get_any_field(self.m_fields, 'NoSuchField') self.assertEqual(l_field, None)
def test_01_Missing(self): l_missing = XML.get_any_field(self.m_fields, 'NoValidName') self.assertIsNone(l_missing)
def test_02_GetAnyField_Attribute(self): l_field = XML.get_any_field(self.m_fields, 't1') self.assertEqual(l_field, 'Test of text attribute')
def test_01_GetAnyField_Element(self): l_field = XML.get_any_field(self.m_fields, 'TextField1') self.assertEqual(l_field, 'Test of text element')
def test_02_GetAnyField_Attribute(self): l_field = XML.get_any_field(self.m_fields, 'TextA0') self.assertEqual(l_field, TESTING_XML_TEXT_A0)
def test_01_GetAnyField_Element(self): l_field = XML.get_any_field(self.m_fields, 'Text1') self.assertEqual(l_field, TESTING_XML_TEXT_1)