def METHOD_NAME(self):
    with self.assertRaises(ValueError) as context:
        self.resource_quota_user.handler = "Pizza.is.good"
    self.assertTrue(
        "must be a subclass of ResourceQuotaHandler" in str(context.exception)
    )