'Test windows split pathspec functionality.'

def testWinSplitPathspec(self):

    self.SetupWinEnvironment()
    from grr.client import client_utils_windows
    testdata = [('C:\\Windows', '\\\\?\\Volume{11111}', '/Windows'), ('C:\\\\Windows\\\\', '\\\\?\\Volume{11111}', '/Windows'), ('C:\\\\', '\\\\?\\Volume{11111}', '/')]
    for (filename, expected_device, expected_path) in testdata:
        (raw_pathspec, path) = client_utils_windows.WinGetRawDevice(filename)
        self.assertEqual(expected_device, raw_pathspec.path)
        self.assertEqual(expected_path, path)
