def METHOD_NAME(self):
    restrictions = Restrictions(min_occurs=1, max_occurs=4)
    self.assertEqual({"max_occurs": 4, "min_occurs": 1}, restrictions.asdict())
    restrictions.min_occurs = 0
    self.assertEqual({"max_occurs": 4}, restrictions.asdict())
    restrictions.max_occurs = sys.maxsize
    self.assertEqual({}, restrictions.asdict())