def test_get_names(self): lav_marker_list = blastz_NLMSA.find_lavmarkers(self.buf) lav_coords = blastz_NLMSA.construct_coord(lav_marker_list) for coord in lav_coords: start_index = int(coord[0]) end_index = int(coord[1]) lav_block = self.buf[start_index:end_index] records = lav_block.split("\n}\n") self.assertEqual(blastz_NLMSA.get_names(records), ["testgenome1", "testgenome2"])
def test_construct_coord(self): lavmarkers_list = blastz_NLMSA.find_lavmarkers(self.buf) self.assertEqual(blastz_NLMSA.construct_coord(lavmarkers_list), [(218, 490)])
def test_find_lav_marker(self): self.assertEqual(len(blastz_NLMSA.find_lavmarkers(self.buf)), 2)