def test_invalidCharactersGetRemoved(self): # make sure the shuffled sequence does not lose any elements invalidPath = '/Users/mikael.ber:gstrom/åäö:/ÅÄÖ'.decode('utf-8') self.assertEqual(Cleanpath.cleanPath(invalidPath), '/Users/mikael.bergstrom/aao/AAO')
def test_replaceableCharatercGetReplaced(self): # make sure the shuffled sequence does not lose any elements invalidPath = '/Users/mikael.bergstrom/åäö/ÅÄÖ'.decode('utf-8') self.assertEqual(Cleanpath.cleanPath(invalidPath), '/Users/mikael.bergstrom/aao/AO')