Mastodonplus.py/tests/test_domain_blocks.py

14 líneas
264 B
Python
Original Vista normal Històric

2017-11-30 01:29:20 +01:00
import pytest
@pytest.mark.vcr()
def test_domain_blocks(api):
blocks = api.domain_blocks()
assert isinstance(blocks, list)
@pytest.mark.vcr()
def test_domain_block_unblock(api):
api.domain_block('example.com')
api.domain_unblock('example.com')