def test_bgzf(self): with File._open_for_random_access( "Quality/example.fastq.bgz") as handle: self.assertIsInstance(handle, bgzf.BgzfReader)
def test_plain(self): with File._open_for_random_access("Quality/example.fastq") as handle: self.assertTrue("r" in handle.mode) self.assertTrue("b" in handle.mode)
def test_bgzf(self): with File._open_for_random_access("Quality/example.fastq.bgz") as handle: self.assertIsInstance(handle, bgzf.BgzfReader)
def test_plain(self): """Test plain text file.""" with File._open_for_random_access("Quality/example.fastq") as handle: self.assertIn("r", handle.mode) self.assertIn("b", handle.mode)