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