Example #1
0
 def testSegmentQsets(self):
     segment = SegmentQ()
     segment.setPositionInLot(1)
     segment.setSenderBank(bank)
     segment.setPayer(payer)
     segment.setPayerAddress(address)
     segment.setGuarantor(guarantor)
     segment.setCancel()
     response = "3410001300001Q 021000012345678901ARYA STARK                              AV PAULISTA 1000                                       01310000SAO PAULO      SP1000009876543210SACADOR                                 000                            "
     self.assertEqual(segment.content, response)
Example #2
0
 def testSegmentQdefaultValues(self):
     content = SegmentQ().content
     self.assertEqual(content[3:7], "0001")
     self.assertEqual(content[7:8], "3")
     self.assertEqual(content[13:14], "Q")
     self.assertEqual(content[15:17], "01")
Example #3
0
 def testSegmentQsets(self):
     segment = SegmentQ()
     segment.setPositionInLot(1)
     segment.setSenderBank(bank)
     segment.setPayer(payer)
     segment.setPayerAddress(address)
     segment.setGuarantor(guarantor)
     response = "3410001300001Q 011000012345678901JOHN SMITH                              AV PAULISTA 1000                                       01310000SAO PAULO      SP1000009876543210JON SNOW                                000                            "
     self.assertEquals(segment.content, response)
Example #4
0
 def testSegmentQlengh(self):
     string = SegmentQ().content
     self.assertEqual(len(string), 240)