예제 #1
0
 def test_02_Element(self):
     l_result = XML.get_any_field(self.m_fields, 'IntField')
     self.assertEqual(l_result, '246')
예제 #2
0
 def test_03_Attribute(self):
     l_result = XML.get_any_field(self.m_fields, 'i1')
     self.assertEqual(l_result, '371')
예제 #3
0
 def test_03_GetAnyField_Missing(self):
     l_field = XML.get_any_field(self.m_fields, 'NoSuchField')
     self.assertEqual(l_field, None)
예제 #4
0
 def test_01_Missing(self):
     l_missing = XML.get_any_field(self.m_fields, 'NoValidName')
     self.assertIsNone(l_missing)
예제 #5
0
 def test_02_GetAnyField_Attribute(self):
     l_field = XML.get_any_field(self.m_fields, 't1')
     self.assertEqual(l_field, 'Test of text attribute')
예제 #6
0
 def test_01_GetAnyField_Element(self):
     l_field = XML.get_any_field(self.m_fields, 'TextField1')
     self.assertEqual(l_field, 'Test of text element')
예제 #7
0
 def test_03_GetAnyField_Missing(self):
     l_field = XML.get_any_field(self.m_fields, 'NoSuchField')
     self.assertEqual(l_field, None)
예제 #8
0
 def test_02_GetAnyField_Attribute(self):
     l_field = XML.get_any_field(self.m_fields, 'TextA0')
     self.assertEqual(l_field, TESTING_XML_TEXT_A0)
예제 #9
0
 def test_01_GetAnyField_Element(self):
     l_field = XML.get_any_field(self.m_fields, 'Text1')
     self.assertEqual(l_field, TESTING_XML_TEXT_1)