diff --git a/tests/test_cliCmd.py b/tests/test_cliCmd.py index 3837cd1e1..d0aceb787 100644 --- a/tests/test_cliCmd.py +++ b/tests/test_cliCmd.py @@ -83,7 +83,7 @@ def testNoConfigOverride(self): # assert that the first argument to the call to makeSkyMap was a butler self.assertIsInstance(mock.call_args[0][0], Butler) # assert that the second argument matches the expected config - self.assertEqual(mock.call_args[0][1], expectedConfig) + self.assertTrue(mock.call_args[0][1].compare(expectedConfig)) def testConfigOverride(self): """Verify expected arguments are passed to makeSkyMap with config @@ -102,7 +102,7 @@ def testConfigOverride(self): # assert that the first argument to the makeSkyMap call was a butler self.assertIsInstance(mock.call_args[0][0], Butler) # assert that the second argument matches the expected config - self.assertEqual(mock.call_args[0][1], expectedConfig) + self.assertTrue(mock.call_args[0][1].compare(expectedConfig)) def testNonExistantConfigFile(self): """Verify an expected error when a given config override file does not diff --git a/tests/test_matchFakes.py b/tests/test_matchFakes.py index bb7483dd3..4e878d1ba 100644 --- a/tests/test_matchFakes.py +++ b/tests/test_matchFakes.py @@ -52,7 +52,7 @@ def setUp(self): self.simpleMap = skyMap.DiscreteSkyMap(simpleMapConfig) self.tractId = 0 - bCircle = self.simpleMap.generateTract(self.tractId).getInnerSkyPolygon().getBoundingCircle() + bCircle = self.simpleMap.generateTract(self.tractId).getOuterSkyPolygon().getBoundingCircle() bCenter = sphgeom.LonLat(bCircle.getCenter()) bRadius = bCircle.getOpeningAngle().asRadians() targetSources = 10000