def test_GenCoor_distance5(): g1 = GenCoor(chrom="chr1", start=10, end=65, name="test", strand=".") g2 = GenCoor(chrom="chr2", start=60, end=70, name="test", strand=".") assert g2.distance(region=g1, sign=True) == None
def test_GenCoor_distance2(): g1 = GenCoor(chrom="chr1", start=10, end=50, name="test", strand=".") g2 = GenCoor(chrom="chr1", start=60, end=70, name="test", strand=".") assert g2.distance(region=g1) == 10