Adding subreddit name to a few error messages.

This commit is contained in:
Michael Lazar
2016-10-17 17:43:10 -07:00
parent de9edd1ce0
commit 9675fb4ba4
4 changed files with 15 additions and 5 deletions

View File

@@ -399,8 +399,9 @@ def test_content_subreddit_me(reddit, oauth, refresh_token, terminal):
# If there is no submitted content, an error should be raised
if terminal.loader.exception:
assert isinstance(terminal.loader.exception, exceptions.SubredditError)
assert isinstance(terminal.loader.exception,
exceptions.NoSubmissionsError)
assert terminal.loader.exception.name == '/u/me'
def test_content_subscription(reddit, terminal):