2017-11-27 02:37:02 +01:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
@pytest.mark.vcr()
|
2017-11-27 14:35:02 +01:00
|
|
|
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
|