Mastodonplus.py/tests/test_instance.py
2017-11-27 14:35:02 +01:00

10 líneas
292 B
Python

import pytest
@pytest.mark.vcr()
def test_instance(api):
instance = api.instance()
assert isinstance(instance, dict) # hehe, instance is instance
expected_keys = set(('description', 'email', 'title', 'uri', 'version', 'urls'))
assert set(instance.keys()) >= expected_keys