2016-03-07 00:08:57 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-05-20 23:18:42 +00:00
|
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
|
|
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
|
|
|
# Copyright (C) 2015-2016 Tobias Gruetzmacher
|
|
|
|
|
|
|
|
from __future__ import absolute_import, division, print_function
|
2016-03-07 00:08:57 +00:00
|
|
|
|
2013-04-09 17:33:50 +00:00
|
|
|
from dosagelib import scraper
|
|
|
|
|
|
|
|
|
|
|
|
class ATestScraper(scraper._BasicScraper):
|
2016-05-20 23:18:42 +00:00
|
|
|
pass
|
2013-04-09 17:33:50 +00:00
|
|
|
|
2016-03-07 00:08:57 +00:00
|
|
|
|
|
|
|
class TestVote(object):
|
2013-04-09 17:33:50 +00:00
|
|
|
|
|
|
|
def test_vote(self):
|
2016-05-20 23:18:42 +00:00
|
|
|
answer = ATestScraper('Test_Test').vote()
|
2016-03-07 00:08:57 +00:00
|
|
|
assert answer in ('counted', 'no'), 'invalid answer %r' % answer
|