Permalink
Browse files

Prefer unittest assertion to plain assertion for consistency.

  • Loading branch information...
1 parent fbd59c6 commit e247745ccd1e8cd0e666a35e81dd9358ff0835cf @cbrueffer cbrueffer committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Tests/test_bgzf.py
View
@@ -217,7 +217,7 @@ def check_random(self, filename):
h = bgzf.BgzfReader(filename, "rb", max_cache = 1)
for voffset, real_offset in v_offsets:
h.seek(0)
- assert voffset >= 0 and real_offset >= 0
+ self.assertTrue(voffset >= 0 and real_offset >= 0)
self.assertEqual(h.read(real_offset), old[:real_offset])
self.assertEqual(h.tell(), voffset)
for voffset, real_offset in v_offsets:

0 comments on commit e247745

Please sign in to comment.