Beispiel #1
0
def test_extract_regions_mth_of_nth(alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1/50")
    assert hf.buddy2hash(tester) == "b4f86edc6869a50b9ac273abaa22b894"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-1/50")
    assert hf.buddy2hash(tester) == "9c98929737aa6673eba9d6ad1486d50b"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1/-500")
    assert hf.buddy2hash(tester) == "76cc5b13425726b6818de1ec8a09d4e8"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "50/1")
    assert hf.buddy2hash(tester) == "46388b175b31b81f47199ae6327768af"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "50/25")
    assert hf.buddy2hash(tester) == "4f42e487d6f8917451f7e838ff168663"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1:5/50")
    assert hf.buddy2hash(tester) == "2d0dca7b78db5b5a51f987ca60aa2fd0"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-5:/50")
    assert hf.buddy2hash(tester) == "518557f3e66d0e45747deab55cffcace"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), ":5/50")
    assert hf.buddy2hash(tester) == "2d0dca7b78db5b5a51f987ca60aa2fd0"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1:10,1/50,-1")
    assert hf.buddy2hash(tester) == "6858e0cca31d254d7336bde3c60f5622"
Beispiel #2
0
def test_extract_regions_mth_of_nth(alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1/50")
    assert hf.buddy2hash(tester) == "30fd2aaa33bbe4923238f9d54cf10c34"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-1/50")
    assert hf.buddy2hash(tester) == "30414697c79e4af680021d337b298a47"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1/-500")
    assert hf.buddy2hash(tester) == "91db964471556b36debd4ca0ab864343"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "50/1")
    assert hf.buddy2hash(tester) == "cfc32cff951fc50f283131155a510310"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "50/25")
    assert hf.buddy2hash(tester) == "44a0298522a7312014f90dae58c08bf0"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1:5/50")
    assert hf.buddy2hash(tester) == "ba873583e5fb769a5553e75b33f7cca9"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-5:/50")
    assert hf.buddy2hash(tester) == "54cb86fdb9d5cb959506a3639cf651a0"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), ":5/50")
    assert hf.buddy2hash(tester) == "ba873583e5fb769a5553e75b33f7cca9"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"),
                                 "1:10,1/50,-1")
    assert hf.buddy2hash(tester) == "f396c1af79334ca4a93fba8f6dd9f17e"
Beispiel #3
0
def test_extract_regions_mth_of_nth(alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1/50")
    assert hf.buddy2hash(tester) == "b0de1f95d208005b986da1a444598835"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-1/50")
    assert hf.buddy2hash(tester) == "80987109be8b75ad5d146759047e7a18"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1/-500")
    assert hf.buddy2hash(tester) == "f501d35f55130d89ab0205271f3750cd"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "50/1")
    assert hf.buddy2hash(tester) == "bf8485cbd30ff8986c2f50b677da4332"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "50/25")
    assert hf.buddy2hash(tester) == "869599739a3d79f1d1ac0084df803635"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1:5/50")
    assert hf.buddy2hash(tester) == "12f567b44f4d79fa907a8f66e7d28536"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-5:/50")
    assert hf.buddy2hash(tester) == "f9072e3a1a3c339c0e2dfdf8444a3639"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), ":5/50")
    assert hf.buddy2hash(tester) == "12f567b44f4d79fa907a8f66e7d28536"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"),
                                 "1:10,1/50,-1")
    assert hf.buddy2hash(tester) == "51f8135db8e13ff06b0eef87b618dfe2"
Beispiel #4
0
def test_extract_regions_ranges(alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "0:10")
    assert hf.buddy2hash(tester) == "65214ccec8e0be7459b8cac7686949ed"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1:10")
    assert hf.buddy2hash(tester) == "65214ccec8e0be7459b8cac7686949ed"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "10:1")
    assert hf.buddy2hash(tester) == "65214ccec8e0be7459b8cac7686949ed"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), ":10")
    assert hf.buddy2hash(tester) == "65214ccec8e0be7459b8cac7686949ed"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-10:")
    assert hf.buddy2hash(tester) == "e1092c191c8a1721d399f0e1a03af015"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "40:75,89:100,432:-45")
    assert hf.buddy2hash(tester) == "2fe7d2b15d28a3778b52e30171cea6bf"
Beispiel #5
0
def test_extract_regions_singlets(alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "0")
    assert hf.buddy2hash(tester) == "4e6b813255000b181357dca293c6e9c4"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1")
    assert hf.buddy2hash(tester) == "4e6b813255000b181357dca293c6e9c4"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-10000000")
    assert hf.buddy2hash(tester) == "4e6b813255000b181357dca293c6e9c4"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), ",1/")
    assert hf.buddy2hash(tester) == "4e6b813255000b181357dca293c6e9c4"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1000000")
    assert hf.buddy2hash(tester) == "da0849f4fbdf833223d010427f25d5e6"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "2,5,9,-5")
    assert hf.buddy2hash(tester) == "f26c7778136905caadbe5f5f368c63f8"
Beispiel #6
0
def test_extract_regions_singlets(alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "0")
    assert hf.buddy2hash(tester) == "f43a8ceaa0a4316ee94c585cbe05dbd4"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1")
    assert hf.buddy2hash(tester) == "f43a8ceaa0a4316ee94c585cbe05dbd4"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-10000000")
    assert hf.buddy2hash(tester) == "f43a8ceaa0a4316ee94c585cbe05dbd4"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), ",1/")
    assert hf.buddy2hash(tester) == "f43a8ceaa0a4316ee94c585cbe05dbd4"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1000000")
    assert hf.buddy2hash(tester) == "22ab94845c529da24090d0fbfb9dfd94"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "2,5,9,-5")
    assert hf.buddy2hash(tester) == "98fad1c733fd19c87d8a18474255383c"
Beispiel #7
0
def test_extract_regions_singlets(alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "0")
    assert hf.buddy2hash(tester) == "7b0c9b75754b8909a4856f342505b488"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1")
    assert hf.buddy2hash(tester) == "7b0c9b75754b8909a4856f342505b488"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-10000000")
    assert hf.buddy2hash(tester) == "7b0c9b75754b8909a4856f342505b488"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), ",1/")
    assert hf.buddy2hash(tester) == "7b0c9b75754b8909a4856f342505b488"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1000000")
    assert hf.buddy2hash(tester) == "b1dd3a26ddb84acba4f36bb920feac25"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "2,5,9,-5")
    assert hf.buddy2hash(tester) == "a382bce1bd68a66c4107b63494a684da"
Beispiel #8
0
def test_extract_regions_ranges(alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "0:10")
    assert hf.buddy2hash(tester) == "85ca9a5893372e9114f053b3e4d4c9c8"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1:10")
    assert hf.buddy2hash(tester) == "85ca9a5893372e9114f053b3e4d4c9c8"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "10:1")
    assert hf.buddy2hash(tester) == "85ca9a5893372e9114f053b3e4d4c9c8"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), ":10")
    assert hf.buddy2hash(tester) == "85ca9a5893372e9114f053b3e4d4c9c8"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-10:")
    assert hf.buddy2hash(tester) == "155496a7bdb25a97891d0dd3dce20e21"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"),
                                 "40:75,89:100,432:-45")
    assert hf.buddy2hash(tester) == "558060bbac8b97ab4f36fec427525674"
Beispiel #9
0
def test_extract_regions_ranges(alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "0:10")
    assert hf.buddy2hash(tester) == "a7d81c7176667138407fa956b36c3124"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "1:10")
    assert hf.buddy2hash(tester) == "a7d81c7176667138407fa956b36c3124"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "10:1")
    assert hf.buddy2hash(tester) == "a7d81c7176667138407fa956b36c3124"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), ":10")
    assert hf.buddy2hash(tester) == "a7d81c7176667138407fa956b36c3124"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"), "-10:")
    assert hf.buddy2hash(tester) == "1284dc81cdbe791712e0cf1d7c49ba50"

    tester = Alb.extract_regions(alb_resources.get_one("o p g"),
                                 "40:75,89:100,432:-45")
    assert hf.buddy2hash(tester) == "40dbe2d78ca4437b922f7fdb8e83b2cf"
Beispiel #10
0
def test_extract_regions(key, next_hash, alb_resources, hf):
    tester = Alb.extract_regions(alb_resources.get_one(key), "0:50")
    assert hf.buddy2hash(tester) == next_hash, print(tester)