Add test for from_name for multireddits

This commit is contained in:
woorst
2016-06-28 16:52:59 -05:00
parent 10268f0fa0
commit 2f06df7515

View File

@@ -250,6 +250,11 @@ def test_content_subreddit_from_name(reddit, terminal):
assert content.name == '/user/spez' assert content.name == '/user/spez'
assert content.order is None assert content.order is None
name = '/u/multi-mod/m/art'
content = SubredditContent.from_name(reddit, name, terminal.loader)
assert content.name == '/u/multi-mod/m/art'
assert content.order is None
# Can submit without the /r/ and with the order in the name # Can submit without the /r/ and with the order in the name
name = 'python/top/' name = 'python/top/'
content = SubredditContent.from_name(reddit, name, terminal.loader) content = SubredditContent.from_name(reddit, name, terminal.loader)