X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=test%2Fexport_block.py;h=161525e49ecb6bd6ea2db014ab60babe76bad158;hp=15a01ed5e9bcb56138170b3ac71dac14c966a182;hb=4f73d07f91a9dad741535ba8d5f33f8ac3001427;hpb=540a183bbac5399c3cc6acbcc685fa4ba10ef3c3 diff --git a/test/export_block.py b/test/export_block.py index 15a01ed..161525e 100644 --- a/test/export_block.py +++ b/test/export_block.py @@ -29,12 +29,16 @@ Success >>> file_name = '%s.dat' % uuid4() +>>> export_already_exists = os.path.exists(file_name) +>>> export_already_exists +False >>> h = r.run_lines(h, ['export_block --output %s' % file_name]) Success >>> with open(file_name, 'r') as f: ... lines = f.readlines() ->>> os.remove(file_name) +>>> if export_already_exists == False: +... os.remove(file_name) >>> print len(lines) 2049 >>> print ''.join(lines[:5]), # doctest: +ELLIPSIS, +REPORT_UDIFF +NORMALIZE_WHITESPACE