def METHOD_NAME(self):
    restrictions = Restrictions()
    self.assertFalse(restrictions.is_list)
    restrictions.max_occurs = 1
    self.assertFalse(restrictions.is_list)
    restrictions.max_occurs = 2
    self.assertTrue(restrictions.is_list)