dosage/tests/test_comicnames.py
Bastian Kleineidam da9eee3bc0 Updated copyright.
2013-02-15 18:32:36 +01:00

17 lines
549 B
Python

# -*- coding: iso-8859-1 -*-
# Copyright (C) 2012-2013 Bastian Kleineidam
from unittest import TestCase
from dosagelib import scraper, util
class TestComicNames(TestCase):
def test_names(self):
for scraperclass in scraper.get_scraperclasses():
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)