Improve coverage

This commit is contained in:
Vincent Jacques
2013-08-19 14:26:39 +02:00
parent 9f7d251535
commit 629d012d8e
2 changed files with 13 additions and 0 deletions
+3
View File
@@ -32,3 +32,6 @@ class RateLimiting(Framework.TestCase):
self.g.get_user("jacquev6")
self.assertEqual(self.g.rate_limiting, (4999, 5000))
self.assertEqual(self.g.rate_limiting_resettime, 1375802816)
def testResetTime(self):
self.assertEqual(self.g.rate_limiting_resettime, 1375802816)
+10
View File
@@ -0,0 +1,10 @@
https
GET
api.github.com
None
/rate_limit
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
null
200
[('status', '200 OK'), ('x-ratelimit-remaining', '5000'), ('x-github-media-type', 'github.beta; format=json'), ('x-content-type-options', 'nosniff'), ('access-control-expose-headers', 'ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes'), ('cache-control', 'max-age=0, private, must-revalidate'), ('vary', 'Accept-Encoding'), ('content-length', '59'), ('server', 'GitHub.com'), ('x-ratelimit-limit', '5000'), ('etag', '"47ba6b48c8b2986ec54f249b51b0a9ec"'), ('access-control-allow-credentials', 'true'), ('date', 'Tue, 06 Aug 2013 14:52:12 GMT'), ('x-oauth-scopes', 'user, public_repo, repo, gist'), ('content-type', 'application/json; charset=utf-8'), ('access-control-allow-origin', '*'), ('x-ratelimit-reset', '1375802816')]
{"rate":{"limit":5000,"remaining":5000,"reset":1375802816}}