diff options
author | codl <[email protected]> | 2017-11-27 14:35:56 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 14:35:56 +0100 |
commit | adc75c469774ebbe0bece90a5abed07f6562dfaf (patch) | |
tree | 128d192b1448d83cf2056ae57c777e56f8883171 /tests/test_timeline.py | |
parent | 304145f4420180b23e0836a6d11fc0cec0e341bd (diff) | |
download | mastodon.py-adc75c469774ebbe0bece90a5abed07f6562dfaf.tar.gz |
add a test for accessing a tl that one does not have access to
Diffstat (limited to 'tests/test_timeline.py')
-rw-r--r-- | tests/test_timeline.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_timeline.py b/tests/test_timeline.py index 492d0c7..eae0e80 100644 --- a/tests/test_timeline.py +++ b/tests/test_timeline.py | |||
@@ -28,3 +28,9 @@ def test_hashtag_tl(api): | |||
28 | assert status['id'] in map(lambda st: st['id'], tl) | 28 | assert status['id'] in map(lambda st: st['id'], tl) |
29 | finally: | 29 | finally: |
30 | api.status_delete(status['id']) | 30 | api.status_delete(status['id']) |
31 | |||
32 | @pytest.mark.vcr() | ||
33 | def test_home_tl_anonymous_throws(api_anonymous): | ||
34 | from mastodon.Mastodon import MastodonAPIError | ||
35 | with pytest.raises(MastodonAPIError): | ||
36 | tl = api_anonymous.timeline_home() | ||