diff --git a/tests/test_background.py b/tests/test_background.py index 8c95342e4..c23f34e78 100644 --- a/tests/test_background.py +++ b/tests/test_background.py @@ -673,6 +673,8 @@ def testBackgroundList(self): approxWeighting = False backgroundList = afwMath.BackgroundList() + # An empty BackgroundList should eval to False, like an empty list. + self.assertFalse(backgroundList) for i in range(2): bkgd = afwMath.makeBackground(self.image, bgCtrl) @@ -684,6 +686,7 @@ def testBackgroundList(self): backgroundList.append(bkgd) def assertBackgroundList(bgl): + self.assertTrue(bgl) self.assertEqual(len(bgl), 2) # check that len() works for a in bgl: # check that we can iterate pass