Fix test :)
This commit is contained in:
parent
16004e43e4
commit
1aebdce5d2
1 changed files with 8 additions and 3 deletions
|
@ -1,8 +1,13 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
||||||
# Copyright (C) 2016 Tobias Gruetzmacher
|
# Copyright (C) 2015-2016 Tobias Gruetzmacher
|
||||||
|
|
||||||
from dosagelib import scraper, util
|
from __future__ import absolute_import, division, print_function
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
|
from dosagelib import scraper
|
||||||
|
|
||||||
|
|
||||||
class TestComicNames(object):
|
class TestComicNames(object):
|
||||||
|
@ -15,4 +20,4 @@ class TestComicNames(object):
|
||||||
comicname = name.split('/')[1]
|
comicname = name.split('/')[1]
|
||||||
else:
|
else:
|
||||||
comicname = name
|
comicname = name
|
||||||
assert util.asciify(comicname) == comicname
|
assert re.sub("[^0-9a-zA-Z_]", "", comicname) == comicname
|
||||||
|
|
Loading…
Reference in a new issue