From: Diane Trout Date: Mon, 6 Apr 2015 21:52:27 +0000 (-0700) Subject: Update test to be more robust to changing dictionary order. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=b5c0a81b303bcd3f4e7df37dedbdd29915545f5a Update test to be more robust to changing dictionary order. The test used to be stable in python2 days, but lets just use sets to make sure it wont fail in the future. --- diff --git a/htsworkflow/pipelines/test/test_runfolder_ipar130.py b/htsworkflow/pipelines/test/test_runfolder_ipar130.py index 5fe6221..4891015 100644 --- a/htsworkflow/pipelines/test/test_runfolder_ipar130.py +++ b/htsworkflow/pipelines/test/test_runfolder_ipar130.py @@ -123,7 +123,7 @@ class RunfolderTests(TestCase): self.failUnlessEqual(b.user, 'diane') self.failUnlessEqual(len(b.phasing), 8) self.failUnlessAlmostEqual(b.phasing[8].phasing, 0.0099) - self.failUnlessEqual(b.crosstalk.base.keys(), ['A','C','T','G']) + self.assertEqual(set(b.crosstalk.base), set(['A','C','T','G'])) check_crosstalk(b.crosstalk) xml = b.get_elements()