from oacensus.scraper import Scraper
from oacensus.commands import defaults

class TestScraper(Scraper):
    """
    Scraper for testing scraper methods.
    """
    aliases = ['testscraper']

    def scrape(self):
        pass

    def process(self):
        pass

def test_hashcode():
    scraper = Scraper.create_instance('testscraper', defaults)
    assert len(scraper.hashcode()) == 32

def test_run():
    scraper = Scraper.create_instance('testscraper', defaults)
    scraper.run()

[((17, 14, 17, 62), 'oacensus.scraper.Scraper.create_instance', 'Scraper.create_instance', ({(17, 38, 17, 51): '"""testscraper"""', (17, 53, 17, 61): 'defaults'}, {}), "('testscraper', defaults)", False, 'from oacensus.scraper import Scraper\n'), ((21, 14, 21, 62), 'oacensus.scraper.Scraper.create_instance', 'Scraper.create_instance', ({(21, 38, 21, 51): '"""testscraper"""', (21, 53, 21, 61): 'defaults'}, {}), "('testscraper', defaults)", False, 'from oacensus.scraper import Scraper\n')]