diff options
Diffstat (limited to 'tests/test_account.py')
-rw-r--r-- | tests/test_account.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/test_account.py b/tests/test_account.py index ef48d4e..231f85c 100644 --- a/tests/test_account.py +++ b/tests/test_account.py | |||
@@ -232,7 +232,26 @@ def test_suggested_tags(api): | |||
232 | 232 | ||
233 | @pytest.mark.vcr() | 233 | @pytest.mark.vcr() |
234 | def test_featured_tags(api): | 234 | def test_featured_tags(api): |
235 | featured_tag = api.featured_tag_create("ringtones") | 235 | try: |
236 | featured_tag = api.featured_tag_create("ringtones") | ||
237 | assert featured_tag | ||
238 | assert featured_tag.name == "ringtones" | ||
239 | |||
240 | featured_tag_2 = api.featured_tag_create("#coolfree") | ||
241 | assert featured_tag_2 | ||
242 | assert featured_tag_2.name == "coolfree" | ||
243 | |||
244 | api.featured_tag_delete(featured_tag) | ||
245 | featured_tag = None | ||
246 | |||
247 | featured_tag_list = api.account_featured_tags(api.account_verify_credentials()) | ||
248 | assert len(featured_tag_list) == 1 | ||
249 | assert featured_tag_list[0].name == "coolfree" | ||
250 | assert "url" in featured_tag_list[0] | ||
251 | finally: | ||
252 | if not featured_tag is None: | ||
253 | api.featured_tag_delete(featured_tag) | ||
254 | api.featured_tag_delete(featured_tag_2) | ||
236 | 255 | ||
237 | @pytest.mark.vcr() | 256 | @pytest.mark.vcr() |
238 | def test_account_notes(api, api2): | 257 | def test_account_notes(api, api2): |