Commits

James Taylor  committed 4d265fa

Make BGZF test a real unittest

  • Participants
  • Parent commits fe3d5eb

Comments (0)

Files changed (1)

File lib/bx/misc/bgzf_tests.py

 import bx.misc.bgzf
 
 def test_bgzf():
-    f = bx.misc.bgzf.BGZFFile( "../test_data/bgzf_tests/test.txt.gz" )
-    print f.read( 10 )
+    f = bx.misc.bgzf.BGZFFile( "test_data/bgzf_tests/test.txt.gz" )
+    assert f.read( 10 ) == "begin 644 "
     print f.seek( 0 )
-    print f.read( 10 )
-    
-test_bgzf()
+    assert f.read( 10 ) == "begin 644 "