Skip to content

Commit

Permalink
test for non-equivalent 'repr's for translationDB sequences & regular…
Browse files Browse the repository at this point in the history
… sequences.
  • Loading branch information
Titus Brown committed Jul 21, 2009
1 parent 281eee8 commit 4dadd8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/translationDB_test.py
Expand Up @@ -29,3 +29,15 @@ def test_slice_empty_start(self):
id = 'gi|171854975|dbj|AB364477.1|'
tseq = self.tdb[id][:99]
assert str(tseq)[0:10] == 'MVHLTDAEKA'

def test_repr_ne(self):
"""
Make sure there's some way to distinguish translated seqs from
regular, visually!
"""
id = 'gi|171854975|dbj|AB364477.1|'

seq = self.dna[id]
tseq = self.tdb[id]

assert repr(seq) != repr(tseq)

0 comments on commit 4dadd8b

Please sign in to comment.