def METHOD_NAME(self, mock_rq):
    mock_rq.DoesNotExist = ResourceQuota.DoesNotExist
    rq = mock.MagicMock()
    mock_rq.objects.get.return_value = rq
    rq.check_quota.return_value = False
    self.assertFalse(
        utilities.passes_quota(UserQuota, "codename", raise_on_false=False)
    )