/[gzz]/gzz/test/gzz/mediaserver/util.test
ViewVC logotype

Diff of /gzz/test/gzz/mediaserver/util.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by tuukkah, Tue Oct 15 20:18:13 2002 UTC revision 1.3 by Vegai, Wed Oct 16 09:40:49 2002 UTC
# Line 20  def testStripBlock(): Line 20  def testStripBlock():
20      tmpname = tempfile.mktemp()      tmpname = tempfile.mktemp()
21      util.stripBlock(blockname, tmpname)      util.stripBlock(blockname, tmpname)
22      print 'Stripped'      print 'Stripped'
     tmpfile = open(tmpname, 'rb')  
23      hash = md5.new()      hash = md5.new()
24      for line in xreadlines.xreadlines(tmpfile):      hash.update(open(tmpname, 'rb').read())
         hash.update(line)  
25      failUnlessEqual(hash.hexdigest(), "711be4dc69c602546b132c4fae3ab7f2")      failUnlessEqual(hash.hexdigest(), "711be4dc69c602546b132c4fae3ab7f2")

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26