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 \
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 ;
"""
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)
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 ;
return suite
if __name__ == "__main__":
- from unittest2 import main
+ from unittest import main
main(defaultTest='suite')