Mastodonplus.py/tests/test_instance.py

11 líneas
292 B
Python
Original Vista normal Històric

2017-11-27 02:37:02 +01:00
import pytest
@pytest.mark.vcr()
def test_instance(api):
instance = api.instance()
2017-11-27 02:37:02 +01:00
assert isinstance(instance, dict) # hehe, instance is instance
expected_keys = set(('description', 'email', 'title', 'uri', 'version', 'urls'))
assert set(instance.keys()) >= expected_keys