def METHOD_NAME(self, tmpdir):
    httpmocks.page(re.compile(r'.*com/$'), 'zp-home')
    httpmocks.page(re.compile(r'.*com/comic/missing/$'), 'zp-223')
    httpmocks.page(re.compile(r'.*com/comic/lifejacket/$'), 'zp-222')
    httpmocks.jpeg(re.compile(r'https://cdn-.*\.jpg'))
    cmd_ok("-v", "-b", str(tmpdir), "-o", "json", "ZenPencils")
    directory = tmpdir.join('ZenPencils')
    f = directory.join('dosage.json').open(encoding='utf-8')
    data = json.load(f)
    f.close()
    pages = data['pages']
    assert len(pages) == 1
    page = list(pages.keys())[0]
    assert page == 'https://zenpencils.com/comic/missing/'
    images = data['pages'][page]['images']
    assert len(images) == 2
    for imgfile in images.values():
        assert directory.join(imgfile).check(file=1)