]> Creatis software - gdcm.git/blobdiff - gdcmPython/testSuite.py
* src/gdcmElValSet.cxx, gdcmFile.cxx: JPR bug fix, removal of
[gdcm.git] / gdcmPython / testSuite.py
index 7efdf672476e74b67aff006af03e71cb2d0bb349..8a19d58b6c6bf34c292abf92fcd416413da1abd8 100644 (file)
@@ -528,14 +528,19 @@ class gdcmTestCase(unittest.TestCase):
       Source.GetImageData()
       TargetFileName = "junk"
       Target = Source.WriteDcmImplVR(TargetFileName)
-      Sign = '5af8739c15dd579dea223eb3930cacda'
+      Sign = 'c3d27238647b7eaa773bff6ea0692b54'
       ComputeSign = md5.new(open(TargetFileName).read()).hexdigest()
-      #print ComputeSign
       self.assertEqual(ComputeSign, Sign,
           ("Wrong signature for file %s (got %s, shoud be %s)"
            % (SourceFileName, ComputeSign, Sign)) )
       os.unlink(TargetFileName)
 
 if __name__ == '__main__':
+   if not GDCM_TEST_DATA_PATH:
+      print "GDCM_TEST_DATA_PATH is not setup properly. This test suite"
+      print "   requires that some Dicom reference files be installed."
+      print "   For further details on installation of gdcmData, please"
+      print "   refer to the developper's section of page "
+      print "       http://www.creatis.insa-lyon.fr/Public/Gdcm"
    unittest.main()