Package: python-cogent / 1.9-14

parsinsert_not_in_caps.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Author: Tim Booth <tbooth@ceh.ac.uk>
Last-Update: Fri, 25 Apr 2014 17:27:42 +0100
Description: make script compatible with spelling of Debian's
 parsinsert package

--- a/cogent/app/parsinsert.py
+++ b/cogent/app/parsinsert.py
@@ -28,7 +28,7 @@ from StringIO import StringIO
 class ParsInsert(CommandLineApplication):
     """ParsInsert application Controller"""
 
-    _command = 'ParsInsert'
+    _command = 'parsinsert'
     _input_handler = '_input_as_multiline_string'
     _parameters = {
                     # read mask from this file
--- a/tests/test_app/test_parsinsert.py
+++ b/tests/test_app/test_parsinsert.py
@@ -60,7 +60,7 @@ class ParsInsertTests(TestCase):
         
         app = ParsInsert()
         self.assertEqual(app.BaseCommand, \
-                         ''.join(['cd "',getcwd(),'/"; ','ParsInsert']))
+                         ''.join(['cd "',getcwd(),'/"; ','parsinsert']))
         
     def test_change_working_dir(self):
         """Change working dir"""
@@ -68,7 +68,7 @@ class ParsInsertTests(TestCase):
         app = ParsInsert(WorkingDir='/tmp/ParsInsertTest')
         self.assertEqual(app.BaseCommand, \
                        ''.join(['cd "','/tmp/ParsInsertTest',\
-                                '/"; ','ParsInsert']))
+                                '/"; ','parsinsert']))
                                 
         rmtree('/tmp/ParsInsertTest')
 
--- a/tests/alltests.py
+++ b/tests/alltests.py
@@ -232,7 +232,7 @@ def suite():
             ('mothur', 'test_mothur'),
             ('muscle', 'test_muscle_v38'),
             ('msms', 'test_msms'),
-            ('ParsInsert', 'test_parsinsert'),
+            ('parsinsert', 'test_parsinsert'),
             ('pplacer', 'test_pplacer'),
             ('rdp_classifier-2.2.jar', 'test_rdp_classifier'),
             ('rdp_classifier-2.0.jar', 'test_rdp_classifier20'),