aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_instance.py')
-rw-r--r--tests/test_instance.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_instance.py b/tests/test_instance.py
new file mode 100644
index 0000000..d6f1bed
--- /dev/null
+++ b/tests/test_instance.py
@@ -0,0 +1,11 @@
1from .fixtures import *
2import pytest
3
4@pytest.mark.vcr()
5def test_instance(mastodon):
6 instance = mastodon.instance()
7
8 assert isinstance(instance, dict) # hehe, instance is instance
9
10 expected_keys = set(('description', 'email', 'title', 'uri', 'version', 'urls'))
11 assert set(instance.keys()) >= expected_keys
Powered by cgit v1.2.3 (git 2.41.0)