source:
people/peter.buschman/backup_monitoring/parsing/parsers/puredisk_status/test.py@
1258
Last change on this file since 1258 was 976, checked in by , on Dec 6, 2011 at 10:19:33 AM | |
---|---|
File size: 342 bytes |
Line | |
---|---|
1 | |
2 | import time |
3 | |
4 | from backup_monitoring.parsing.parsers import puredisk_status as parser |
5 | |
6 | file = open('test.txt', 'r') |
7 | |
8 | stream = parser.stream(file) |
9 | |
10 | for record in stream: |
11 | |
12 | #print record |
13 | |
14 | instance = parser.parse(record) |
15 | |
16 | for key, value in instance.items(): |
17 | print '[%s] = [%s]' % (key, value) |
18 | |
19 | file.close() |
Note:
See TracBrowser
for help on using the repository browser.