From 362767f91146271e17f7f10bd976940a1544bd5a Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 4 Jun 2018 20:55:44 +0200 Subject: Pinning tests --- tests/test_account.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/test_account.py') diff --git a/tests/test_account.py b/tests/test_account.py index 2716ad1..3befdd5 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -112,3 +112,13 @@ def test_account_update_credentials_no_avatar(api): header = image, header_mime_type = "image/jpeg") assert account + +@pytest.mark.vcr() +def test_account_pinned(status, status2, api): + try: + status = api.status_pin(status['id']) + pinned = api.account_statuses(api.account_verify_credentials(), pinned = True) + assert status in pinned + assert not status2 in pinned + finally: + api.status_unpin(status['id']) \ No newline at end of file -- cgit v1.2.3