From b54b4210dd55682babc502ae1e8911649a7e12ba Mon Sep 17 00:00:00 2001 From: woorst Date: Tue, 28 Jun 2016 16:52:59 -0500 Subject: [PATCH] Add test for from_name for multireddits --- tests/test_content.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_content.py b/tests/test_content.py index bc9ee2e..afbc256 100644 --- a/tests/test_content.py +++ b/tests/test_content.py @@ -250,6 +250,11 @@ def test_content_subreddit_from_name(reddit, terminal): assert content.name == '/user/spez' 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 name = 'python/top/' content = SubredditContent.from_name(reddit, name, terminal.loader)