def test_overlaps_false_different_chrom(self, location): from outrigger.region import Region r1 = Region(location) r2 = Region('chr2:400-500:-') assert not r1.overlaps(r2) assert not r2.overlaps(r1)
def test_overlaps_true(self, location_with_region_name, location): from outrigger.region import Region r1 = Region(location_with_region_name) r2 = Region(location) assert r1.overlaps(r2) assert r2.overlaps(r1)