dosage/tests/test_vote.py
Tobias Gruetzmacher 4d2fac1a9c Make it easier to write tests for comic modules
This also adds a simple test for the "turnoff" module to demonstrate
these features.
2019-12-01 22:36:49 +01:00

22 lines
540 B
Python

# -*- coding: utf-8 -*-
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2019 Tobias Gruetzmacher
from __future__ import absolute_import, division, print_function
import responses
from dosagelib import scraper
class ATestScraper(scraper._BasicScraper):
pass
class TestVote(object):
@responses.activate
def test_vote(self):
responses.add(responses.POST, 'https://buildbox.23.gs/count/', '')
ATestScraper('Test_Test').vote()