dosage/tests/test_comicnames.py

19 lines
528 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2014-01-05 15:50:57 +00:00
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2016 Tobias Gruetzmacher
2012-12-12 16:41:29 +00:00
from dosagelib import scraper, util
class TestComicNames(object):
2012-12-12 16:41:29 +00:00
def test_names(self):
for scraperclass in scraper.get_scraperclasses():
name = scraperclass.getName()
assert name.count('/') <= 1
2012-12-12 16:41:29 +00:00
if '/' in name:
comicname = name.split('/')[1]
else:
comicname = name
assert util.asciify(comicname) == comicname