diff options
Diffstat (limited to 'tests/test_instance.py')
-rw-r--r-- | tests/test_instance.py | 11 |
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 @@ | |||
1 | from .fixtures import * | ||
2 | import pytest | ||
3 | |||
4 | @pytest.mark.vcr() | ||
5 | def 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 | ||