def test_sanitize_win_path_string(self): p = '\\windows\\system' self.assertEqual(utils.sanitize_win_path_string('\\windows\\system'), '\\windows\\system') self.assertEqual(utils.sanitize_win_path_string('\\bo:g|us\\p?at*h>'), '\\bo_g_us\\p_at_h_')