Skip to content

Commit

Permalink
test end_reason mismatch for new end_reason labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Psy-Fer committed Sep 17, 2024
1 parent f43512b commit 70abb6d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,19 @@ def test_write_records_aux(self):
ret_list.append(ret)
self.assertEqual(ret_list, results)

class TestEndReason(unittest.TestCase):
def setUp(self):
self.s5 = slow5.Open('examples/adv/example3.blow5','r', DEBUG=debug)
self.F = slow5.Open('examples/example_write2.blow5','w', DEBUG=debug)
def tearDown(self):
self.s5.close()
self.F.close()
def test_end_reason_mismatch(self):
# for newer versions
header, end_reason_labels = self.F.get_empty_header(aux=True)
file_end_reason_labels = self.s5.get_aux_enum_labels('end_reason')
self.assertNotEqual(file_end_reason_labels, end_reason_labels)


# def test_bad_type(self):
# data = "banana"
Expand Down

0 comments on commit 70abb6d

Please sign in to comment.