Skip to content

Commit 25902a9

Browse files
pslacerda1pslacerda
authored andcommitted
Example test
1 parent 7297a01 commit 25902a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

findseq.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,11 @@ def checkParams(needle, haystack, selName, het, matchMode):
203203
print("Error: selName was not a string.")
204204
return False
205205
return True
206+
207+
208+
def test_findseq():
209+
cmd.fab('ACDEFG', 'm1')
210+
cmd.fab('HIKLMN', 'm2')
211+
cmd.do('findseq DEF, *, foundSeq')
212+
assert cmd.count_atoms("foundSeq and m1") == 47
213+
assert cmd.count_atoms("foundSeq and m2") == 0

0 commit comments

Comments
 (0)