def test_03_GetElement_Missing(self): l_elem = XML.get_element_field(self.m_fields, 'MissingElement') self.assertEqual(l_elem, None)
def test_01_GetAttribute(self): l_attr = XML.get_attribute_field(self.m_fields, 't1') self.assertEqual(l_attr, 'Test of text attribute')
def test_2_Bool(self): l_elem = XML.get_element_field(self.m_fields, 'Bool0') self.assertEqual(l_elem, TESTING_XML_BOOL_0)
def test_02_GetElement_attribute(self): l_elem = XML.get_element_field(self.m_fields, 't1') self.assertEqual(l_elem, None)
def test_03_GetAnyField_Missing(self): l_field = XML.get_any_field(self.m_fields, 'NoSuchField') self.assertEqual(l_field, None)
def test_02_Element(self): l_result = XML.get_any_field(self.m_fields, 'IntField') self.assertEqual(l_result, '246')
def test_05_GetAttribute_Missing(self): l_attr = XML.get_attribute_field(self.m_fields, 'MissingAttribute') self.assertEqual(l_attr, None)
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_GetAttribute_element(self): l_attr = XML.get_attribute_field(self.m_fields, 'FloatA0') self.assertEqual(l_attr, TESTING_XML_FLOAT_A0)
def test_04_GetAttribute_element(self): l_attr = XML.get_attribute_field(self.m_fields, 'TextA0') self.assertEqual(l_attr, TESTING_XML_TEXT_A0)
def test_01_GetAttribute(self): l_attr = XML.get_attribute_field(self.m_fields, 'BoolA0') self.assertEqual(l_attr, TESTING_XML_BOOL_A0)
def test_4_Float(self): l_elem = XML.get_element_field(self.m_fields, 'Float0') self.assertEqual(l_elem, TESTING_XML_FLOAT_0)
def test_3_Int(self): l_elem = XML.get_element_field(self.m_fields, 'Int0') self.assertEqual(l_elem, TESTING_XML_INT_0)
def test_02_GetAttribute_element(self): l_attr = XML.get_attribute_field(self.m_fields, 'TextField1') self.assertEqual(l_attr, None)
def test_01_GetAnyField_Element(self): l_field = XML.get_any_field(self.m_fields, 'Text1') self.assertEqual(l_field, TESTING_XML_TEXT_1)
def test_03_GetAttribute_Missing(self): l_attr = XML.get_attribute_field(self.m_fields, 'MissingAttribute') self.assertEqual(l_attr, None)
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_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_Missing(self): l_missing = XML.get_any_field(self.m_fields, 'NoValidName') self.assertIsNone(l_missing)
def test_01_GetElement(self): l_elem = XML.get_element_field(self.m_fields, 'TextField1') self.assertEqual(l_elem, 'Test of text element')
def test_03_Attribute(self): l_result = XML.get_any_field(self.m_fields, 'i1') self.assertEqual(l_result, '371')
def test_1_Text(self): l_elem = XML.get_element_field(self.m_fields, 'Text0') self.assertEqual(l_elem, TESTING_XML_TEXT_0)