From: Diane Trout Date: Fri, 29 Jul 2011 21:31:37 +0000 (-0700) Subject: Make a test more robust to different versions of librdf X-Git-Tag: 0.5.3~13 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=9df35a667961ddaaf92f5b5105ee76d307781982 Make a test more robust to different versions of librdf [] vs <> change in nodes. --- diff --git a/htsworkflow/submission/test/test_daf.py b/htsworkflow/submission/test/test_daf.py index a5c3719..4f77799 100644 --- a/htsworkflow/submission/test/test_daf.py +++ b/htsworkflow/submission/test/test_daf.py @@ -156,7 +156,8 @@ thisView:FastqRd1 dafTerm:filename_re ".*_r1\\\\.fastq" . # dump_model(daf_mapper.model) view_root = 'http://jumpgate.caltech.edu/wiki/SubmissionsLog/{0}/view/' view_root = view_root.format(name) - self.failUnlessEqual(str(view), '<{0}{1}>'.format(view_root,'FastqRd1')) + self.failUnlessEqual(str(view)[1:-1], + '{0}{1}'.format(view_root,'FastqRd1')) def test_find_overlapping_view(self): name = 'testfind'