diff --git a/FWCore/ParameterSet/python/Types.py b/FWCore/ParameterSet/python/Types.py index b069226e74e9b..e052b6c4ace59 100644 --- a/FWCore/ParameterSet/python/Types.py +++ b/FWCore/ParameterSet/python/Types.py @@ -2000,7 +2000,7 @@ def testAllowed(self): p2 = PSet(aValue=optional.allowed(int32,PSet)) self.assertEqual(p2.dumpPython(),'cms.PSet(\n aValue = cms.optional.allowed(cms.int32,cms.PSet)\n)') p2.aValue = 2 - self.assertEquals(p2.aValue.value(),2) + self.assertEqual(p2.aValue.value(),2) p2 = PSet(aValue=optional.allowed(int32,PSet)) p2.aValue = PSet(i = int32(3)) self.assertEqual(p2.aValue.i.value(),3) @@ -2008,7 +2008,7 @@ def testAllowed(self): p2 = PSet(aValue=optional.untracked.allowed(int32,PSet)) self.assertEqual(p2.dumpPython(),'cms.PSet(\n aValue = cms.optional.untracked.allowed(cms.int32,cms.PSet)\n)') p2.aValue = 2 - self.assertEquals(p2.aValue.value(),2) + self.assertEqual(p2.aValue.value(),2) p2 = PSet(aValue=optional.untracked.allowed(int32,PSet)) p2.aValue = PSet(i = int32(3)) self.assertEqual(p2.aValue.i.value(),3)