Add path filter

This commit is contained in:
Thomas Vander Stichele
2013-07-13 18:38:31 +02:00
parent f93390d1bc
commit c75f71ead3
4 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_path -*-
# vi:si:et:sw=4:sts=4:ts=4
from morituri.common import path
from morituri.test import common
class FilterTestCase(common.TestCase):
def setUp(self):
self._filter = path.PathFilter()
def testSlash(self):
part = u'A Charm/A Blade'
self.assertEquals(self._filter.filter(part), u'A Charm-A Blade')