示例#1
0
文件: test_bwa.py 项目: mylons/bwa-py
def test_all_rotations_from_string():

    rotations = [['^', 'B', 'A', 'N', 'A', 'N', 'A', '|'],
                 ['|', '^', 'B', 'A', 'N', 'A', 'N', 'A'],
                 ['A', '|', '^', 'B', 'A', 'N', 'A', 'N'],
                 ['N', 'A', '|', '^', 'B', 'A', 'N', 'A'],
                 ['A', 'N', 'A', '|', '^', 'B', 'A', 'N'],
                 ['N', 'A', 'N', 'A', '|', '^', 'B', 'A'],
                 ['A', 'N', 'A', 'N', 'A', '|', '^', 'B'],
                 ['B', 'A', 'N', 'A', 'N', 'A', '|', '^']]
    r = BWT.all_rotations_from_string("^Banana|".upper())
    assert_that(r, is_(rotations))