Пример #1
0
 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)
Пример #2
0
 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)