Пример #1
0
 def setUp(self):
     self.data = read_flat('c32.txt')
     self.data = self.data.upper()
     # Presenter Header
     record = Record(c32.FILE_HEADER_RECORD)
     record.record_code = '02'
     record.data_code = '65'
     record.file_date = datetime.datetime(2011, 07, 04)
     record.number = '1280'
     record.bank_code = '2959'
     record.bank_office = '0912'
     self.file_header = record
Пример #2
0
 def setUp(self):
     self.data = read_flat("c32.txt")
     self.data = self.data.upper()
     # Presenter Header
     record = Record(c32.FILE_HEADER_RECORD)
     record.record_code = "02"
     record.data_code = "65"
     record.file_date = datetime.datetime(2011, 0o7, 0o4)
     record.number = "1280"
     record.bank_code = "2959"
     record.bank_office = "0912"
     self.file_header = record