From 2b4008981055f990c23bf42bb65f856231436422 Mon Sep 17 00:00:00 2001 From: codl Date: Thu, 30 Nov 2017 01:29:20 +0100 Subject: add tests for domain block methods --- tests/test_domain_blocks.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/test_domain_blocks.py (limited to 'tests/test_domain_blocks.py') 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 @@ +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') -- cgit v1.2.3