Skip to content
Snippets Groups Projects
Commit 95bad849 authored by Ian Cordasco's avatar Ian Cordasco
Browse files

Add test for User#iter_orgs

parent 7bb0a126
No related branches found
No related tags found
No related merge requests found
{"http_interactions": [{"request": {"body": "", "headers": {"Accept-Charset": "utf-8", "Content-Type": "application/json", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/0.8.0"}, "method": "GET", "uri": "https://api.github.com/users/sigmavirus24"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA51UTYvbMBD9K4tge3Iif8aOYekXFPbQ25ZCL2EsyY6oLBlJdpqG7W/vyMm22VyWBAw21rw3b0bz5kCU6aQmNXGy62GSdnRpTiIiOanTPK6yOCIwgQe7Ga3CuK33g6spTZedPR4smenp8ZOyJK+yYsWrdbtOC7Fap0lZNUIkfJ0Ba8v3/GEmuM8+3qdf8JFcaC+Z0W7ZSb8dm8CG/3Mok3KVx1nOOIiqLPMqb0SZlknVQJGuloPu3tmHXyj1RccmaCZvKUDA60JgkGep6eiEdfSiG1vfq4v6/6u9DG6NUmaHLBeINxPRf0gUefyWuruRBZEHavxW4MVhSc+hUdL560XNqAMNL+xw4HE4DVbwq4WdcChrp1HRgVoxmJlwbByzcvAS5+B62nM0shnbgZa/4TY2RDskCdKulzKjEC0mnOrr4UfYgQ5WTsD2oTVWMCEnbPaNlBd4ZPT7QaBPvuFQhNZLLzbA+7ADWlBORERDHwIeQd99NpaDYwYD0ZYD6D0efBKa73fG/gyVNrg/TlsBl8Jut0P/dkrONqZ/0NgzAZ3DIlw2bL4WRHwFLp3R0d33x9CwHmTYLujltgXPjEJFnZk+4FKSKpBh0FZaAY1CcSeljTSk1qNSERnGRkm2OV5AXVQvBkIbkrpYnfkJ91qJ5SCVx7aCx6xpnMSLOF8k8VOc13FZZ+kPzDcO/FVMtkiSRVI8xWmdx3WBMc9/AWrAf2JABQAA", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "59", "x-github-media-type": "github.v3; param=full; 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", "transfer-encoding": "chunked", "x-github-request-id": "451DE0B5:0BB6:EF599E:52858DDF", "content-encoding": "gzip", "vary": "Accept, Accept-Encoding", "server": "GitHub.com", "cache-control": "public, max-age=60, s-maxage=60", "last-modified": "Fri, 15 Nov 2013 02:40:52 GMT", "x-ratelimit-limit": "60", "etag": "\"c8849fcefb255dd00b73c49ee653f375\"", "access-control-allow-credentials": "true", "date": "Fri, 15 Nov 2013 02:58:39 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1384487919"}, "url": "https://api.github.com/users/sigmavirus24", "status_code": 200}, "recorded_at": "2013-11-15T02:58:32"}, {"request": {"body": "", "headers": {"Accept-Charset": "utf-8", "Content-Type": "application/json", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/0.8.0"}, "method": "GET", "uri": "https://api.github.com/users/sigmavirus24/orgs"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA62WXWvbMBSG/4uhuyqJPo6ko0IZu9mfGKPo6CMxbRPPcbqV0v8+NXaypHggm0AunDjPsdHzniP9eKuetqt6U91VFDfh9fe2fdxVt1UdqjsDoPG22rdP+e6665rd3XLpmnqxqrv1nhZ++7zctqvd8oJsY7PdPUyBlgckPzS+xE03ke2ZDD/HZ4rtRHqA3pb9xXuu0+zpqfYPs8pdsudV3YvrXPtpWcRi1fY3DmvZXy6dVz5BiHn1tVWeUImA6K12zAFG8TXcH2TcyG834nv+1CEvW+23m92Zmfy748icNJq49Cp5jzygtB4ASQsivWg2qy/t/Z/q/fZfCrp19Gu3WcUciyEHXPP8KiVB+ASXRuEcmx6GC3pGHC74awTiouDESPDRSBAKqxmIZJxiJjGmwTMdiBsDipMsjkTQqLJMgZwHHrXiClDnmFimiEMaj0QT0mPdHcOgBDcoStJw4kpz0APTEzBwM9wP5DWsD6Wu4pvr6FyELChJhQrzKCAHgenc/kwFXuxba6MZz9lJhqQXeZ4bCpAsF8ojShodAXm8d3Vz9J13AWZkie8TV+q7B6b7HrgZvgfyGr6HUhN9s9H+FtEo4BEoT1prkgRHUlLgnicQ3vli3woIouRcgHMoCD1zwUkPjAMhKPk/33k7l83rSTkKrooGfn8S6NEJ1vvHzRI/oPPcD/CV9A/VJiZgfNOXVkcZopJSMEfJolIhd6kPMliQPBUnIClnIheO5Rmvk/SWEQsuN7EVwZAZT0Abf+3jrjse/ASy/CK8pOfPyFL/R2S6/hM5w/6JvYb8U7GJ7sd3dxG9zy3KlDLC8ygo67M+f0dGHnW5e0KrAfPYCEYCRS05QuDkmSSnSMJo92937jjrlWRaGlvifaBKnX/8fbrvAzXD9YG7hudDoYmOR0/jSxRJK2ZRBsHynCcWWQKUgD4fxhLzH2qq959/AYQf7+6PDQAA", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "58", "x-github-media-type": "github.v3; param=full; 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", "transfer-encoding": "chunked", "x-github-request-id": "451DE0B5:0BB6:EF59B2:52858DDF", "content-encoding": "gzip", "vary": "Accept, Accept-Encoding", "server": "GitHub.com", "cache-control": "public, max-age=60, s-maxage=60", "x-ratelimit-limit": "60", "etag": "\"cbdb6ef88fcff24a5d848de0f7a9eace\"", "access-control-allow-credentials": "true", "date": "Fri, 15 Nov 2013 02:58:39 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1384487919"}, "url": "https://api.github.com/users/sigmavirus24/orgs", "status_code": 200}, "recorded_at": "2013-11-15T02:58:33"}], "recorded_with": "betamax"}
\ No newline at end of file
import github3
from .helper import IntegrationHelper
class TestUser(IntegrationHelper):
def test_iter_orgs(self):
cassette_name = self.cassette_name('iter_orgs')
with self.recorder.use_cassette(cassette_name):
u = self.gh.user('sigmavirus24')
for o in u.iter_orgs(number=25):
assert isinstance(o, github3.orgs.Organization)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment