diff options
author | codl <[email protected]> | 2017-11-30 01:29:20 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-30 01:29:20 +0100 |
commit | 2b4008981055f990c23bf42bb65f856231436422 (patch) | |
tree | 6638583244b7e8b288655bc7f74f4147a5e8d655 /tests/test_domain_blocks.py | |
parent | f9a52029fc6d399c8fcd85a50060e0f5773da78e (diff) | |
download | mastodon.py-2b4008981055f990c23bf42bb65f856231436422.tar.gz |
add tests for domain block methods
Diffstat (limited to 'tests/test_domain_blocks.py')
-rw-r--r-- | tests/test_domain_blocks.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_domain_blocks.py b/tests/test_domain_blocks.py new file mode 100644 index 0000000..c96f7d6 --- /dev/null +++ b/tests/test_domain_blocks.py | |||
@@ -0,0 +1,13 @@ | |||
1 | import pytest | ||
2 | |||
3 | |||
4 | @pytest.mark.vcr() | ||
5 | def test_domain_blocks(api): | ||
6 | blocks = api.domain_blocks() | ||
7 | assert isinstance(blocks, list) | ||
8 | |||
9 | |||
10 | @pytest.mark.vcr() | ||
11 | def test_domain_block_unblock(api): | ||
12 | api.domain_block('example.com') | ||
13 | api.domain_unblock('example.com') | ||