aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_account.py')
-rw-r--r--tests/test_account.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_account.py b/tests/test_account.py
index 700433f..6f3b9a5 100644
--- a/tests/test_account.py
+++ b/tests/test_account.py
@@ -280,3 +280,14 @@ def test_follow_with_notify_reblog(api, api2, api3):
280 api.account_unfollow(api2_id) 280 api.account_unfollow(api2_id)
281 api3.status_delete(status1) 281 api3.status_delete(status1)
282 api2.status_delete(status2) 282 api2.status_delete(status2)
283
284@pytest.mark.vcr()
285def test_account_lookup(api, api3):
286 id = api.me().id
287 try:
288 api.account_lookup("kljadklajsdkljlkjlkjlkjasdasd")
289 assert False
290 except:
291 pass
292 assert(api.account_lookup("mastodonpy_test").id == id)
293 assert(api.account_lookup("mastodonpy_test@localhost:3000").id == id) \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)