Skip to content

Commit 65c27c1

Browse files
committed
Test issue 20
1 parent 8366140 commit 65c27c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_fragments/test_fragments.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import pytest
22
from Bio.Seq import Seq
3+
from Bio.SeqRecord import SeqRecord
4+
from Bio.Restriction import BsmBI
35
from dnacauldron.Fragment import (
46
StickyEnd,
57
StickyEndSeq,
@@ -55,3 +57,11 @@ def test_StickyEndSeqFragment():
5557
sticky_fragment = StickyEndFragment(sticky)
5658
with pytest.raises(ValueError):
5759
sticky_fragment.circularized()
60+
61+
62+
# This tests for case-sensitivity (Github issue #20):
63+
def test_list_from_record_digestion():
64+
# The sequence contains 2 BsmBI sites:
65+
record = SeqRecord(Seq("AAAACGTCTCAccccTTaaaaaaaaaaaaTTGGGGAGAGACGTTTttt"))
66+
digest_list = StickyEndFragment.list_from_record_digestion(record, BsmBI)
67+
assert len(digest_list) == 3

0 commit comments

Comments
 (0)