Skip to content

Commit

Permalink
Update Redditor tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bboe committed Apr 13, 2015
1 parent fd99710 commit 7538755
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 73 deletions.
1 change: 0 additions & 1 deletion praw/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def _prepare_request(reddit_session, url, params, data, auth, files):
if getattr(reddit_session, '_use_oauth', False):
headers = {'Authorization': 'bearer %s' % reddit_session.access_token}
config = reddit_session.config
# TODO: Verify this works as expected
for prefix in (config.api_url, config.permalink_url):
if url.startswith(prefix):
if config.log_requests >= 1:
Expand Down
8 changes: 4 additions & 4 deletions praw/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@ class LoggedInRedditor(Redditor):

"""A class representing a currently logged in Redditor."""

get_hidden = restrict_access("history")(_get_redditor_listing('hidden'))
get_saved = restrict_access("history")(_get_redditor_listing('saved'))
get_hidden = restrict_access('history')(_get_redditor_listing('hidden'))
get_saved = restrict_access('history')(_get_redditor_listing('saved'))

def get_blocked(self):
"""Return a UserList of Redditors with whom the user has blocked."""
Expand All @@ -872,10 +872,10 @@ def get_cached_moderated_reddits(self):
self._mod_subs[six.text_type(sub).lower()] = sub
return self._mod_subs

def get_friends(self):
def get_friends(self, **params):
"""Return a UserList of Redditors with whom the user has friended."""
url = self.reddit_session.config['friends']
return self.reddit_session.request_json(url)[0]
return self.reddit_session.request_json(url, params=params)[0]


class ModAction(RedditContentObject):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author_email='timothy.mellor+pip@gmail.com',
maintainer='Bryce Boe',
maintainer_email='bbzbryce@gmail.com',
url='http://praw.readthedocs.org/',
url='https://praw.readthedocs.org/',
description=('PRAW, an acronym for `Python Reddit API Wrapper`, is a '
'python package that allows for simple access to '
'reddit\'s API.'),
Expand All @@ -46,7 +46,7 @@
packages=[PACKAGE_NAME],
package_data={'': ['COPYING'], PACKAGE_NAME: ['*.ini']},
dependency_links=[
'https://github.com/bboe/betamax/archive/ResponseCookies.zip#egg=betamax-0.4.1'],
'https://github.com/sigmavirus24/betamax/archive/7e4efa10f47fc34de1b05bc9387d8255cc469633.zip#egg=betamax-0.4.1'],
install_requires=['requests>=2.3.0', 'six>=1.4', 'update_checker>=0.11'],
tests_require=['betamax>=0.4.1', 'betamax-matchers>=0.1.0', 'mock>=1.0.0'],
entry_points={'console_scripts': [
Expand Down
1 change: 1 addition & 0 deletions tests/cassettes/test_add_remove_friends.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"http_interactions": [{"request": {"body": {"string": "passwd=1111&user=PyAPITestUser2&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["45"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/login/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAAxzLSWoDMRBA0auIWstQGkoq6RzeBRM0Fe3YsUJ3exPTdw/O9j/+C762+YCsXjDWda4bZPVx0Qp62ct/fozRP5d9/3mTlPs2tILv2ZeyLZAVhOfv7XoX02I1wjZVLj4i1xG7LxGFfGu1xJasCZ6JxIFW0Oa8Xcf7jw4th6gtGjqhPxl3Rszks2fN1XdsidgKIVHrLFxEMHRKzkngwS6FEuE4jj8AAAD//wMAA60peMoAAAA=", "encoding": "UTF-8"}, "headers": {"x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "set-cookie": ["__cfduid=d5e2559be70cc6dac386a4890b7dcf4281428911688; expires=Tue, 12-Apr-16 07:54:48 GMT; path=/; domain=.reddit.com; HttpOnly, secure_session=; Domain=reddit.com; Max-Age=-1428911688; Path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT; HttpOnly, reddit_session=7302867%2C2015-04-13T00%3A54%3A48%2C8b4d0c9582f5055cd8f8aff06d5933f68e8396a7; Domain=reddit.com; Path=/; HttpOnly"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Mon, 13 Apr 2015 07:54:48 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d659ae23b0511e3-SJC"]}, "cookies": "\u0080\u0002crequests.cookies\nRequestsCookieJar\nq\u0000)\u0081q\u0001}q\u0002(U\u0004_nowq\u0003JIv+UU\u0007_policyq\u0004(ccookielib\nDefaultCookiePolicy\nq\u0005oq\u0006}q\u0007(U\u001bstrict_rfc2965_unverifiableq\b\u0088U\u0010strict_ns_domainq\tK\u0000U\u0010_allowed_domainsq\nNU\u0013rfc2109_as_netscapeq\u000bNU\u0007rfc2965q\f\u0089U\rstrict_domainq\r\u0089h\u0003JIv+UU\u0012strict_ns_set_pathq\u000e\u0089U\u0016strict_ns_unverifiableq\u000f\u0089U\u001cstrict_ns_set_initial_dollarq\u0010\u0089U\fhide_cookie2q\u0011\u0089U\u0010_blocked_domainsq\u0012)U\bnetscapeq\u0013\u0088ubU\b_cookiesq\u0014}q\u0015U\u000b.reddit.comq\u0016}q\u0017U\u0001/q\u0018}q\u0019(U\u000ereddit_sessionq\u001a(ccookielib\nCookie\nq\u001boq\u001c}q\u001d(U\u0007commentq\u001eNU\u0006domainq\u001fU\u000b.reddit.comq U\u0004nameq!h\u001aU\u0012domain_initial_dotq\"\u0089U\u0007expiresq#NU\u0005valueq$UL7302867%2C2015-04-13T00%3A54%3A48%2C8b4d0c9582f5055cd8f8aff06d5933f68e8396a7q%U\u0010domain_specifiedq&\u0088U\u0005_restq'}q(U\bHttpOnlyq)NsU\u0007versionq*K\u0000U\u000eport_specifiedq+\u0089U\u0007rfc2109q,\u0089U\u0007discardq-\u0088U\u000epath_specifiedq.\u0088U\u0004pathq/h\u0018U\u0004portq0NU\u000bcomment_urlq1NU\u0006secureq2\u0089ubU\b__cfduidq3(h\u001boq4}q5(h\u001eNh\u001fh\u0016h!h3h\"\u0088h#J\u00c8\u00a9\fWh$U+d5e2559be70cc6dac386a4890b7dcf4281428911688q6h&\u0088h'}q7U\bHttpOnlyq8Nsh*K\u0000h+\u0089h,\u0089h-\u0089h.\u0088h/h\u0018h0Nh1Nh2\u0089ubussub.", "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/login/.json"}, "recorded_at": "2015-04-13T07:54:49"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "Cookie": ["reddit_session=7302867%2C2015-04-13T00%3A54%3A48%2C8b4d0c9582f5055cd8f8aff06d5933f68e8396a7; __cfduid=d5e2559be70cc6dac386a4890b7dcf4281428911688"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"]}, "method": "GET", "uri": "https://api.reddit.com/prefs/friends/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA4quVsrOzEtRslJQCi1OLfLJLC5R0lFQSkksSVSyUqhWSs7IzEkpSs1TslKIrgYJpypZKRiaGFlYGhoamlrqGegoKOUl5oJElQIqHQM8Q1KLS0AmGYOMyQQbXGIUb5ZsWJGlVBtbW6ujQIKNsbW1sQAAAAD//wMAHeRrPaIAAAA=", "encoding": "UTF-8"}, "headers": {"x-ratelimit-remaining": ["299"], "x-xss-protection": ["1; mode=block"], "x-reddit-tracking": ["https://pixel.redditmedia.com/pixel/of_destiny.png?v=zMIRRUmjSdni7PlxRHzYwoh0Kh9E6KjwRbKEhTL8tqVlHzxQMdN4%2BBKESjIaMISSZQ%2B6D%2FXsuygCYQ%2Fi%2FJTNA3U%2FGkbTtgk2"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Mon, 13 Apr 2015 07:54:48 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d659ae67b1e11e3-SJC"], "x-ratelimit-used": ["1"], "x-ratelimit-reset": ["312"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/prefs/friends/.json"}, "recorded_at": "2015-04-13T07:54:49"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "Cookie": ["reddit_session=7302867%2C2015-04-13T00%3A54%3A48%2C8b4d0c9582f5055cd8f8aff06d5933f68e8396a7; __cfduid=d5e2559be70cc6dac386a4890b7dcf4281428911688"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"]}, "method": "GET", "uri": "https://api.reddit.com/user/PyAPITestUser2/about/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA1SRuW7DMBBEf4VgLQSiDltWlzKdi6QmVtpVtDAPg6QMG4b/PaDgK+1gZvhmeZUHdih7IVMlCyEREsheXOUMUVtgI3sxgYlUCOnAUnbuL5/7r2+K6SdSWFMc9RSY1qKHewwEibKiqq7ZqLbs2o+yEHJmJD0Fb3Xwg0/xLfPrDeoxECKverZbjzPEOT/snN+Z48XiQgSKoFbbrlJAalsiboZ6aKqyggaxxLqGemrrDHcH0UsanzCqecDkmR4fU1NYModhd9AHCDbfQlW5xFtLLj3FXSGkP1HQqnvFOOq84G0Qr+0vxzqQzkcOkNg72Qu3GHPnOFHgiQk1/afh9X+akc/Temw3+LMe/eJSPtHt9gcAAP//AwDUUVopxAEAAA==", "encoding": "UTF-8"}, "headers": {"x-ratelimit-remaining": ["298"], "x-xss-protection": ["1; mode=block"], "x-reddit-tracking": ["https://pixel.redditmedia.com/pixel/of_destiny.png?v=S44zMfYg6NbrvZIhaWNURrzj3IF7R0FJe9qpWEhQg5DhUOKgm0QLjIhz6dJDmnntQq5Ns4lnln8%3D"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Mon, 13 Apr 2015 07:54:48 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d659ae77b2411e3-SJC"], "x-ratelimit-used": ["2"], "x-ratelimit-reset": ["312"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/user/PyAPITestUser2/about/.json"}, "recorded_at": "2015-04-13T07:54:49"}, {"request": {"body": {"string": "uh=nno9lpymdueea1ea317821ae170dd6b3b4202a4dd0d33a3f53&container=t2_4cixf&type=friend&name=PyAPITestUser3&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["118"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Cookie": ["reddit_session=7302867%2C2015-04-13T00%3A54%3A48%2C8b4d0c9582f5055cd8f8aff06d5933f68e8396a7; __cfduid=d5e2559be70cc6dac386a4890b7dcf4281428911688"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/unfriend/.json"}, "response": {"body": {"string": "{}", "encoding": "UTF-8"}, "headers": {"content-length": ["2"], "x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "x-ratelimit-remaining": ["297"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Mon, 13 Apr 2015 07:54:49 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d659ae86b5211e3-SJC"], "x-ratelimit-used": ["3"], "x-ratelimit-reset": ["311"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/unfriend/.json"}, "recorded_at": "2015-04-13T07:54:49"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "Cookie": ["reddit_session=7302867%2C2015-04-13T00%3A54%3A48%2C8b4d0c9582f5055cd8f8aff06d5933f68e8396a7; __cfduid=d5e2559be70cc6dac386a4890b7dcf4281428911688"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"]}, "method": "GET", "uri": "https://api.reddit.com/prefs/friends/.json?u=1"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA4quVsrOzEtRslJQCi1OLfLJLC5R0lFQSkksSVSyUqhWSs7IzEkpSs1TslKIjq2t1VEgTX0sAAAA//8DADr5nXdgAAAA", "encoding": "UTF-8"}, "headers": {"x-ratelimit-remaining": ["296"], "x-xss-protection": ["1; mode=block"], "x-reddit-tracking": ["https://pixel.redditmedia.com/pixel/of_destiny.png?v=WLxF78o2UDXZd9FwgRXWM6vK7vs8Na3xraSRtyKZ82iqN4qJe10cNqcJ9kdmP4yJx0I2i1INIsFVTyKKmLcHufkXGbkXnvNw"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Mon, 13 Apr 2015 07:54:49 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d659ae9fb5711e3-SJC"], "x-ratelimit-used": ["4"], "x-ratelimit-reset": ["311"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/prefs/friends/.json?u=1"}, "recorded_at": "2015-04-13T07:54:50"}, {"request": {"body": {"string": "uh=nno9lpymdueea1ea317821ae170dd6b3b4202a4dd0d33a3f53&container=t2_4cixf&type=friend&name=PyAPITestUser3&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["118"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Cookie": ["reddit_session=7302867%2C2015-04-13T00%3A54%3A48%2C8b4d0c9582f5055cd8f8aff06d5933f68e8396a7; __cfduid=d5e2559be70cc6dac386a4890b7dcf4281428911688"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/friend/.json"}, "response": {"body": {"string": "{\"json\": {\"errors\": []}}", "encoding": "UTF-8"}, "headers": {"content-length": ["24"], "x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "x-ratelimit-remaining": ["295"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Mon, 13 Apr 2015 07:54:49 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d659aeaeb6111e3-SJC"], "x-ratelimit-used": ["5"], "x-ratelimit-reset": ["311"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/friend/.json"}, "recorded_at": "2015-04-13T07:54:50"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "Cookie": ["reddit_session=7302867%2C2015-04-13T00%3A54%3A48%2C8b4d0c9582f5055cd8f8aff06d5933f68e8396a7; __cfduid=d5e2559be70cc6dac386a4890b7dcf4281428911688"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"]}, "method": "GET", "uri": "https://api.reddit.com/prefs/friends/.json?u=2"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA4quVsrOzEtRslJQCi1OLfLJLC5R0lFQSkksSVSyUqhWSs7IzEkpSs1TslKIrgYJpypZKRiaGFlYGhqaWVjqGegoKOUl5oJElQIqHQM8Q1KLS0AmGYOMyQQbXGIUb5ZsWJGlVBtbW6ujQIKNsbW1sQAAAAD//wMAAnUb/qIAAAA=", "encoding": "UTF-8"}, "headers": {"x-ratelimit-remaining": ["294"], "x-xss-protection": ["1; mode=block"], "x-reddit-tracking": ["https://pixel.redditmedia.com/pixel/of_destiny.png?v=3A8t3jaIJpGEOzfWVG8hC8cuplw%2FggbBLjFxHFVcVl4cl0uGqD6loPAPYzwHzEiesfHdaAbRyDFaswwpbasFf%2BGMAjFp%2FW8X"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Mon, 13 Apr 2015 07:54:50 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d659aec7b6c11e3-SJC"], "x-ratelimit-used": ["6"], "x-ratelimit-reset": ["311"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/prefs/friends/.json?u=2"}, "recorded_at": "2015-04-13T07:54:51"}], "recorded_with": "betamax/0.4.1"}
1 change: 0 additions & 1 deletion tests/cassettes/test_deprecation.json

This file was deleted.

1 change: 1 addition & 0 deletions tests/cassettes/test_duplicate_login.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"http_interactions": [{"request": {"body": {"string": "passwd=1111&user=PyAPITestUser2&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["45"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/login/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAAxzLTYrDMAxA4asYrV2QbEV2fI7ZDUNRbJnMX12SbIaSu5fO9n28B3zt4wbFPcC2bWw7FPf+4R00PfQ/38zadT2O+4u6/uzmHfyOtuq+QnHAbPo37mKGsnCeEuYW0lI5qjaVlJPluExCGNuMlbKCd1DH+P60158ihizJB6Tpgnyh8EZSCEtgz71qrXPuhHFuPRhhzaF2TqnPJFMgFlmCwXmeTwAAAP//AwDG/ieIygAAAA==", "encoding": "UTF-8"}, "headers": {"x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "set-cookie": ["__cfduid=d3ab4c8140bf86014591d82a14bbe4be11428880224; expires=Mon, 11-Apr-16 23:10:24 GMT; path=/; domain=.reddit.com; HttpOnly, secure_session=; Domain=reddit.com; Max-Age=-1428880224; Path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT; HttpOnly, reddit_session=7302867%2C2015-04-12T16%3A10%3A24%2C4fcacc98f1039df2e10c82cf477f916521466b2e; Domain=reddit.com; Path=/; HttpOnly"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Sun, 12 Apr 2015 23:10:24 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d629ab8f3cc071f-SJC"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/login/.json"}, "recorded_at": "2015-04-12T23:10:25"}, {"request": {"body": {"string": "passwd=1111&uh=44eayop6ee06b485708d27bc43aada6787e83b56103d90c18a&user=PyAPITestUser3&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["99"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/login/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAAxzLTWrDMBBA4auIWSswI+tvdI7uSiljaYSTNFFjGwoNvntJt+/jPeGyjTsU8wRd17FuUMz7hzXQZJf/fFdtn8u+f7+oy9em1sBttEW2BYqBy+1xHr8/j+vcpkzOVw41kybkiZg8dmGqUw2dJcnMYU5gDdQxrmd9/YTRIyayDimc0J/IvVEshMUFiz53CTV7xSwpMkmPcyb2kbRj4+QcYVOB4zj+AAAA//8DABHV+7LLAAAA", "encoding": "UTF-8"}, "headers": {"x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "set-cookie": ["__cfduid=d3ab4c8140bf86014591d82a14bbe4be11428880224; expires=Mon, 11-Apr-16 23:10:24 GMT; path=/; domain=.reddit.com; HttpOnly, secure_session=; Domain=reddit.com; Max-Age=-1428880225; Path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT; HttpOnly, reddit_session=10640071%2C2015-04-12T16%3A10%3A25%2C048fa5c84e08a7691af6b819461ef0d972210dea; Domain=reddit.com; Path=/; HttpOnly"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Sun, 12 Apr 2015 23:10:25 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d629abe03e7071f-SJC"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/login/.json"}, "recorded_at": "2015-04-12T23:10:26"}], "recorded_with": "betamax/0.4.1"}
1 change: 1 addition & 0 deletions tests/cassettes/test_get_hidden.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tests/cassettes/test_get_liked_and_disliked.json

Large diffs are not rendered by default.

0 comments on commit 7538755

Please sign in to comment.