diff options
author | codl <[email protected]> | 2017-11-29 22:03:51 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-29 22:07:27 +0100 |
commit | 4d99e9316ea02ded025eee99fb963290218e52d2 (patch) | |
tree | 9d6e4766cbafa6e6a7af61d967d98c06322ae321 /tests/test_status.py | |
parent | 0f753e621a0804dfc8a08e1f5f90972be75c4ff5 (diff) | |
download | mastodon.py-4d99e9316ea02ded025eee99fb963290218e52d2.tar.gz |
add failing test case for #111
Diffstat (limited to 'tests/test_status.py')
-rw-r--r-- | tests/test_status.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_status.py b/tests/test_status.py index a5b8b3a..0e891bb 100644 --- a/tests/test_status.py +++ b/tests/test_status.py | |||
@@ -5,7 +5,12 @@ from time import sleep | |||
5 | @pytest.mark.vcr() | 5 | @pytest.mark.vcr() |
6 | def test_status(status, api): | 6 | def test_status(status, api): |
7 | status2 = api.status(status['id']) | 7 | status2 = api.status(status['id']) |
8 | assert status2 == status | 8 | assert status2 |
9 | |||
10 | @pytest.mark.vcr() | ||
11 | def test_status_empty(api): | ||
12 | with pytest.raises(MastodonAPIError): | ||
13 | api.status_post('') | ||
9 | 14 | ||
10 | @pytest.mark.vcr() | 15 | @pytest.mark.vcr() |
11 | def test_status_missing(api): | 16 | def test_status_missing(api): |