def test_msa_select__remove_one(): fa_1 = FASTA("A", None, "ACGT") fa_2 = FASTA("B", None, "GCTA") initial = MSA([fa_1, fa_2]) expected = MSA([fa_1]) result = initial.select(["A"]) assert_equal(result, expected)
def test_msa_select__remove_one(): fa_1 = FASTA("A", None, "ACGT") fa_2 = FASTA("B", None, "GCTA") initial = MSA([fa_1, fa_2]) expected = MSA([fa_1]) result = initial.select(["A"]) assert_equal(result, expected)
def test_msa_select__no_keys(): msa = MSA([FASTA("Foo", None, "ACGT")]) with pytest.raises(ValueError): msa.select([])
def test_msa_select__missing_keys(): msa = MSA([FASTA("Foo", None, "ACGT")]) with pytest.raises(KeyError): msa.select(["Bar"])