def METHOD_NAME(self):
    self.login_as(self.user)
    self.config.ENABLE_REPO_HISTORY_SETTING = False
    url = reverse("api2-repo-history-limit", args=[self.user_repo_id])
    data = 'keep_days=%s' % 6
    resp = self.client.put(url, data, 'application/x-www-form-urlencoded')
    self.assertEqual(403, resp.status_code)