def METHOD_NAME(self):
    with self.assertRaises(ValueError) as context:
        self.resource_quota_user.check_quota("not a valid entity")
    self.assertTrue("must be a django User or TethysApp" in str(context.exception))