mark the example submission rule files as being raw, so the escapes dont get confused
[htsworkflow.git] / htsworkflow / submission / test / test_submission.py
index 53b4e91cc5ecdce288d63ac30b6c442a72c8e321..d619198a5206a3eef2c7c5737f4c8798ba65a1ce 100644 (file)
@@ -3,7 +3,7 @@ import os
 from StringIO import StringIO
 import shutil
 import tempfile
-from unittest2 import TestCase, TestSuite, defaultTestLoader
+from unittest import TestCase, TestSuite, defaultTestLoader
 
 from htsworkflow.submission import daf, results
 from htsworkflow.util.rdfhelp import \
@@ -84,7 +84,7 @@ class TestSubmission(TestCase):
                          str(RDF.NS('http://localhost/library/')['']))
 
     def test_scan_submission_dirs(self):
-        turtle = get_turtle_header() + """
+        turtle = get_turtle_header() + r"""
 @prefix thisView: <http://jumpgate.caltech.edu/wiki/SubmissionsLog/test/view/> .
 thisView:Fastq ucscDaf:filename_re ".*[^12]\\.fastq\\.bz2$" ;
                a geoSoft:raw ;
@@ -105,8 +105,6 @@ thisView:alignments ucscDaf:filename_re ".*\\.bam$" ;
 
         """
         map = ResultMap()
-        print self.tempdir
-        print os.listdir(self.tempdir)
         map['1000'] = os.path.join(self.sourcedir, S1_NAME)
         map['2000'] = os.path.join(self.sourcedir, S2_NAME)
 
@@ -127,7 +125,7 @@ thisView:alignments ucscDaf:filename_re ".*\\.bam$" ;
         self.assertEqual(expected, got)
 
     def test_find_best_match(self):
-        turtle = get_turtle_header() + """
+        turtle = get_turtle_header() + r"""
 @prefix thisView: <http://jumpgate.caltech.edu/wiki/SubmissionsLog/test/view/> .
 thisView:Fastq ucscDaf:filename_re ".*[^12]\\.fastq\\.bz2$" ;
                a geoSoft:raw ;
@@ -172,5 +170,5 @@ def suite():
     return suite
 
 if __name__ == "__main__":
-    from unittest2 import main
+    from unittest import main
     main(defaultTest='suite')