2012-12-12 16:41:29 +00:00
|
|
|
# -*- coding: iso-8859-1 -*-
|
|
|
|
# Copyright (C) 2012 Bastian Kleineidam
|
|
|
|
from unittest import TestCase
|
|
|
|
from dosagelib import scraper, util
|
|
|
|
|
|
|
|
|
|
|
|
class TestComicNames(TestCase):
|
|
|
|
|
|
|
|
def test_names(self):
|
2013-02-13 18:59:13 +00:00
|
|
|
for scraperclass in scraper.get_scraperclasses():
|
2012-12-12 16:41:29 +00:00
|
|
|
name = scraperclass.get_name()
|
|
|
|
self.assertTrue(name.count('/') <= 1, name)
|
|
|
|
if '/' in name:
|
|
|
|
comicname = name.split('/')[1]
|
|
|
|
else:
|
|
|
|
comicname = name
|
|
|
|
self.assertEqual(util.asciify(comicname), comicname)
|