We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8366140 commit 65c27c1Copy full SHA for 65c27c1
tests/test_fragments/test_fragments.py
@@ -1,5 +1,7 @@
1
import pytest
2
from Bio.Seq import Seq
3
+from Bio.SeqRecord import SeqRecord
4
+from Bio.Restriction import BsmBI
5
from dnacauldron.Fragment import (
6
StickyEnd,
7
StickyEndSeq,
@@ -55,3 +57,11 @@ def test_StickyEndSeqFragment():
55
57
sticky_fragment = StickyEndFragment(sticky)
56
58
with pytest.raises(ValueError):
59
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