dosage/tests/test_vote.py

17 lines
373 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2014-01-05 15:50:57 +00:00
# Copyright (C) 2013-2014 Bastian Kleineidam
# Copyright (C) 2016 Tobias Gruetzmacher
2013-04-09 17:33:50 +00:00
from dosagelib import scraper
class ATestScraper(scraper._BasicScraper):
name = 'Test_Test'
class TestVote(object):
2013-04-09 17:33:50 +00:00
def test_vote(self):
answer = ATestScraper().vote()
assert answer in ('counted', 'no'), 'invalid answer %r' % answer