Changeset 5041
- Timestamp:
- Feb 18, 2008, 5:52:52 PM (15 years ago)
- Location:
- anuga_core/source/anuga/utilities
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/test_system_tools.py
r5008 r5041 5 5 from Numeric import zeros, array, allclose, Float 6 6 from Scientific.IO.NetCDF import NetCDFFile 7 import zlib 7 8 8 9 from system_tools import * … … 33 34 """ 34 35 35 import zlib36 36 from tempfile import mkstemp, mktemp 37 37 … … 98 98 os.remove(filename2) 99 99 100 101 def test_compute_checksum_real(self): 102 """test_compute_checksum(self): 103 104 Check that checksums on a png file is OK 105 """ 106 107 filename = 'crc_test_file.png' 108 109 ref_crc = -1808745910 # Computed on Windows box 110 checksum = compute_checksum(filename) 111 112 msg = 'Computed checksum = %s, should have been %s' %(checksum, ref_crc) 113 assert checksum == ref_crc, msg 114 #print checksum 115 100 116 101 117 #-------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.