Skip to content

Commit

Permalink
BlastxMapping.__getitem__ should not be a generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Titus Brown committed Jul 21, 2009
1 parent 4dadd8b commit 54f6258
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/blast_test.py
Expand Up @@ -407,6 +407,18 @@ def test_translated_seqs_in_results(self):
for slice in results:
assert slice.seq.id in annodb, '%s not in annodb!' % slice.seq.id

def test_non_consumable_results(self):
blastmap = blast.BlastxMapping(self.prot, verbose=False)

query_seq = self.dna['gi|171854975|dbj|AB364477.1|']
results = blastmap[query_seq]

x = list(results)
y = list(results)

assert len(x)
assert x == y

class Tblastn_Test(BlastBase):
def test_tblastn(self):
"tblastn test"
Expand Down

0 comments on commit 54f6258

Please sign in to comment.