Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 72 lines (53 sloc) 2.6 kb
aa7dcf6 Wibowo Arindrarto Refactor SearchIO indexing tests
bow authored
1 # Copyright 2012 by Wibowo Arindrarto. All rights reserved.
2 # This code is part of the Biopython distribution and governed by its
3 # license. Please see the LICENSE file that should have been included
4 # as part of this package.
5
6 """Tests for SearchIO blat-psl indexing."""
7
8 import os
9 import unittest
10
11 from search_tests_common import CheckIndex
12
13
14 class BlatPslIndexCases(CheckIndex):
15
16 fmt = 'blat-psl'
17
18 def test_psl_34_001(self):
19 """Test blat-psl indexing, multiple queries"""
20 filename = os.path.join('Blat', 'psl_34_001.psl')
21 self.check_index(filename, self.fmt)
22
23 def test_psl_34_002(self):
24 """Test blat-psl indexing, single query, no hits"""
25 filename = os.path.join('Blat', 'psl_34_002.psl')
26 self.check_index(filename, self.fmt)
27
28 def test_psl_34_003(self):
29 """Test blat-psl indexing, single query, single hit"""
30 filename = os.path.join('Blat', 'psl_34_003.psl')
31 self.check_index(filename, self.fmt)
32
33 def test_psl_34_004(self):
34 """Test blat-psl indexing, single query, multiple hits with multiple hsps"""
35 filename = os.path.join('Blat', 'psl_34_004.psl')
36 self.check_index(filename, self.fmt)
37
38 def test_psl_34_005(self):
39 """Test blat-psl indexing, multiple queries, no header"""
40 filename = os.path.join('Blat', 'psl_34_005.psl')
41 self.check_index(filename, self.fmt)
42
43 def test_psl_34_006(self):
44 """Test blat-pslx indexing, multiple queries"""
45 filename = os.path.join('Blat', 'pslx_34_001.pslx')
46 self.check_index(filename, self.fmt, pslx=True)
47
48 def test_psl_34_007(self):
49 """Test blat-pslx indexing, single query, no hits"""
50 filename = os.path.join('Blat', 'pslx_34_002.pslx')
51 self.check_index(filename, self.fmt, pslx=True)
52
53 def test_psl_34_008(self):
54 """Test blat-pslx indexing, single query, single hit"""
55 filename = os.path.join('Blat', 'pslx_34_003.pslx')
56 self.check_index(filename, self.fmt, pslx=True)
57
58 def test_psl_34_009(self):
59 """Test blat-pslx indexing, single query, multiple hits with multiple hsps"""
60 filename = os.path.join('Blat', 'pslx_34_004.pslx')
61 self.check_index(filename, self.fmt, pslx=True)
62
63 def test_psl_34_010(self):
64 """Test blat-pslx indexing, multiple queries, no header"""
65 filename = os.path.join('Blat', 'pslx_34_005.pslx')
66 self.check_index(filename, self.fmt, pslx=True)
67
68
69 if __name__ == "__main__":
b67cebf Peter Cock Fix common PEP8 violation in unittest verbosity argument
peterjc authored
70 runner = unittest.TextTestRunner(verbosity=2)
aa7dcf6 Wibowo Arindrarto Refactor SearchIO indexing tests
bow authored
71 unittest.main(testRunner=runner)
Something went wrong with that request. Please try again.