예제 #1
0
파일: test_path.py 프로젝트: azoner/pyx12
 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
파일: test_path.py 프로젝트: azoner/pyx12
 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
파일: test_path.py 프로젝트: azoner/pyx12
 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
파일: test_path.py 프로젝트: Allay/pyx12
 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
파일: test_path.py 프로젝트: Allay/pyx12
 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
파일: test_path.py 프로젝트: Allay/pyx12
 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')