Пример #1
0
 def test_Format3(self):
     path_str = '/2000A/2000B/2300/2400/SV2[421]01'
     path = pyx12.path.X12Path(path_str)
     self.assertEqual(path_str, path.format())
Пример #2
0
 def testLoopSegOK1(self):
     path_str = '/ISA_LOOP/GS_LOOP/ST_LOOP/DETAIL/2000A/2000B/2300/2400/SV2'
     path = pyx12.path.X12Path(path_str)
     self.assertEqual(path_str, path.format())
     self.assertEqual(path.seg_id, 'SV2')
Пример #3
0
 def testLoopOK1(self):
     path_str = '/ISA_LOOP/GS_LOOP/ST_LOOP/DETAIL/2000A/2000B/2300/2400'
     path = pyx12.path.X12Path(path_str)
     self.assertEqual(path_str, path.format())
     self.assertEqual(path.seg_id, None)
     self.assertEqual(path.loop_list[2], 'ST_LOOP')
Пример #4
0
 def test_Format3(self):
     path_str = '/2000A/2000B/2300/2400/SV2[421]01'
     path = pyx12.path.X12Path(path_str)
     self.assertEqual(path_str, path.format())
Пример #5
0
 def testLoopSegOK1(self):
     path_str = '/ISA_LOOP/GS_LOOP/ST_LOOP/DETAIL/2000A/2000B/2300/2400/SV2'
     path = pyx12.path.X12Path(path_str)
     self.assertEqual(path_str, path.format())
     self.assertEqual(path.seg_id, 'SV2')
Пример #6
0
 def testLoopOK1(self):
     path_str = '/ISA_LOOP/GS_LOOP/ST_LOOP/DETAIL/2000A/2000B/2300/2400'
     path = pyx12.path.X12Path(path_str)
     self.assertEqual(path_str, path.format())
     self.assertEqual(path.seg_id, None)
     self.assertEqual(path.loop_list[2], 'ST_LOOP')