'Test combination of path fixing and windows name sanitization.'

@unittest.skipIf((os.path.sep != '\\'), 'Requires    \\    as    path    separator.')
def test_extract_hackers_arcnames_windows_only(self):

    windows_hacknames = [('..\\foo\\bar', 'foo/bar'), ('..\\/foo\\/bar', 'foo/bar'), ('foo/\\..\\/bar', 'foo/bar'), ('foo\\/../\\bar', 'foo/bar'), ('C:foo/bar', 'foo/bar'), ('C:/foo/bar', 'foo/bar'), ('C://foo/bar', 'foo/bar'), ('C:\\foo\\bar', 'foo/bar'), ('//conky/mountpoint/foo/bar', 'foo/bar'), ('\\\\conky\\mountpoint\\foo\\bar', 'foo/bar'), ('///conky/mountpoint/foo/bar', 'conky/mountpoint/foo/bar'), ('\\\\\\conky\\mountpoint\\foo\\bar', 'conky/mountpoint/foo/bar'), ('//conky//mountpoint/foo/bar', 'conky/mountpoint/foo/bar'), ('\\\\conky\\\\mountpoint\\foo\\bar', 'conky/mountpoint/foo/bar'), ('//?/C:/foo/bar', 'foo/bar'), ('\\\\?\\C:\\foo\\bar', 'foo/bar'), ('C:/../C:/foo/bar', 'C_/foo/bar'), ('a:b\\c<d>e|f"g?h*i', 'b/c_d_e_f_g_h_i'), ('../../foo../../ba..r', 'foo/ba..r')]
    self._test_extract_hackers_arcnames(windows_hacknames)
