Beispiel #1
0
 def test_isa_format_as_edi(self):
     good_isa_edi = \
         "ISA*00*          *00*          *12*8005551234AA   *12*8005556789BB   *110408*1221*U*00401*000006617*0*P*>~"
     good_isa_document = Parser().parse_document(good_isa_edi)
     formatted_document = good_isa_document.format_as_edi()
     self.assertEqual(good_isa_edi, formatted_document)
Beispiel #2
0
 def test_interchange_header_trailer_format_as_edi(self):
     interchange_edi = \
         "ISA*00*          *00*          *12*8005551234AA   *12*8005556789BB   *110408*1221*U*00401*000006617*0*P*>\nIEA*0*000006617\n"
     interchange_document = Parser().parse_document(interchange_edi)
     formatted_document = interchange_document.format_as_edi()
     self.assertEqual(interchange_edi, formatted_document)
Beispiel #3
0
 def test_isa_with_alternate_separators_format_as_edi(self):
     good_isa_edi = \
         "ISA|22|          |00|          |12|8005551234AA   |12|8005556789BB   |110408|1221|U|00401|000006617|0|P|>\n"
     good_isa_document = Parser().parse_document(good_isa_edi)
     formatted_document = good_isa_document.format_as_edi()
     self.assertEqual(good_isa_edi, formatted_document)
Beispiel #4
0
 def test_isa_format_as_edi(self):
     good_isa_edi = \
         "ISA*00*          *00*          *12*8005551234AA   *12*8005556789BB   *110408*1221*U*00401*000006617*0*P*>~"
     good_isa_document = Parser().parse_document(good_isa_edi)
     formatted_document = good_isa_document.format_as_edi()
     self.assertEqual(good_isa_edi, formatted_document)
Beispiel #5
0
 def test_interchange_header_trailer_format_as_edi(self):
     interchange_edi = \
         "ISA*00*          *00*          *12*8005551234AA   *12*8005556789BB   *110408*1221*U*00401*000006617*0*P*>\nIEA*0*000006617\n"
     interchange_document = Parser().parse_document(interchange_edi)
     formatted_document = interchange_document.format_as_edi()
     self.assertEqual(interchange_edi, formatted_document)
Beispiel #6
0
 def test_isa_with_alternate_separators_format_as_edi(self):
     good_isa_edi = \
         "ISA|22|          |00|          |12|8005551234AA   |12|8005556789BB   |110408|1221|U|00401|000006617|0|P|>\n"
     good_isa_document = Parser().parse_document(good_isa_edi)
     formatted_document = good_isa_document.format_as_edi()
     self.assertEqual(good_isa_edi, formatted_document)