def testupdaterestrictionfunction(self): # Test updating with a function contents = nmrestrictionsprocessor.update_restriction(self.contentArr, "resource", "events", self._func, func=True) self.assertEqual(self.contentArr2, contents)
def testupdaterestrictionabsolute(self): # Test updating with an absolute value contents = nmrestrictionsprocessor.update_restriction(self.contentArr, "resource", "events", "50", func=False) self.assertEqual(self.contentArr2, contents)