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