Changeset 5044
- Timestamp:
- Feb 18, 2008, 6:20:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/test_system_tools.py
r5042 r5044 6 6 from Scientific.IO.NetCDF import NetCDFFile 7 7 import zlib 8 from os.path import join, split, sep 8 9 9 from system_tools import *10 from anuga.utilities.system_tools import * 10 11 11 12 class Test_system_tools(unittest.TestCase): … … 105 106 """ 106 107 107 filename = 'crc_test_file.png' 108 # Get path where this test is run 109 import anuga.utilities as u 110 path = u.__path__[0] 111 filename = path + sep + 'crc_test_file.png' 108 112 109 113 ref_crc = 1203293305 # Computed on Windows box 110 114 checksum = compute_checksum(filename) 111 115 112 msg = 'Computed checksum = %s, should have been %s' %(checksum, ref_crc) 116 msg = 'Computed checksum = %s, should have been %s'\ 117 %(checksum, ref_crc) 113 118 assert checksum == ref_crc, msg 114 119 #print checksum
Note: See TracChangeset
for help on using the changeset viewer.