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