Beispiel #1
0
def test_order_ids2(alb_resources, hf):
    alignbuddy = alb_resources.get_one("o p n")
    Alb.rename(alignbuddy, "Mle-Panxα4", "Mle004-Panxα4")
    Alb.rename(alignbuddy, "Mle-Panxα5", "Mle05-Panxα5")
    Alb.rename(alignbuddy, "Mle-Panxα9", "aMle-PanxαBlahh")
    Alb.order_ids(alignbuddy)
    assert hf.buddy2hash(alignbuddy) == "5c1316e18205432b044101e720646cd5"
Beispiel #2
0
def test_order_ids1(key, fwd_hash, rev_hash, alb_resources, hf):
    alignbuddy = alb_resources.get_one(key)
    Alb.order_ids(alignbuddy)
    assert hf.buddy2hash(alignbuddy) == fwd_hash, alignbuddy.write("error_files%s%s" % (fwd_hash, os.path.sep))

    Alb.order_ids(alignbuddy, reverse=True)
    assert hf.buddy2hash(alignbuddy) == rev_hash, alignbuddy.write("error_files%s%s" % (rev_hash, os.path.sep))