コード例 #1
0
 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')
コード例 #2
0
 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')
コード例 #3
0
 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')
コード例 #4
0
 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')