Changeset 8592 for main/waeup.kofa/trunk/src/waeup/kofa/tests
- Timestamp:
- 1 Jun 2012, 12:30:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_datacenter.py
r8517 r8592 36 36 # write 100 messages into logfile, with 50 containing 'Msg' 37 37 path = self.logpath 38 for m in range(num ):38 for m in range(num-1,-1,-1): 39 39 fp = open(path, 'wb') 40 40 for n in range(50*m, 50*m+50): … … 62 62 # We can find entries in multiple logfiles (backups) 63 63 datacenter = DataCenter() 64 open(self.logpath, 'wb').write('Msg 1\n')64 open(self.logpath, 'wb').write('Msg 3\n') 65 65 open(self.logpath + '.2', 'wb').write('Msg 2\n') 66 open(self.logpath + '.10', 'wb').write('Msg 3\n')66 open(self.logpath + '.10', 'wb').write('Msg 1\n') 67 67 result = list(datacenter.queryLogfiles('myapp.log', 'Msg')) 68 68 # entry of logfile .10 comes after entry of logfile .2
Note: See TracChangeset for help on using the changeset viewer.