060281e5ff
This is a first step for #42. Since most access to the scraper classes is through instances, modules can now dynamically override url and name (name is now a property).
16 lines
373 B
Python
16 lines
373 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright (C) 2013-2014 Bastian Kleineidam
|
|
# Copyright (C) 2016 Tobias Gruetzmacher
|
|
|
|
from dosagelib import scraper
|
|
|
|
|
|
class ATestScraper(scraper._BasicScraper):
|
|
name = 'Test_Test'
|
|
|
|
|
|
class TestVote(object):
|
|
|
|
def test_vote(self):
|
|
answer = ATestScraper().vote()
|
|
assert answer in ('counted', 'no'), 'invalid answer %r' % answer
|