summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGhislain Rodrigues <git@ghislain-rodrigues.fr>2017-10-08 13:22:37 +0100
committerGhislain Rodrigues <git@ghislain-rodrigues.fr>2017-10-08 13:23:56 +0100
commit54bc522033e78389dc5b131700cf8e9814671a7c (patch)
treed2a032452dc43454a8ca7f2faf6bfac9357959d6 /tests
parentdaee065ecdeb8fc86e8daed9df8bdcc52dd6cc85 (diff)
downloadvdebug-54bc522033e78389dc5b131700cf8e9814671a7c.zip
Revert "tests updated"
This reverts commit 314a9f55dd3222174e3d2b1db871480a870029de.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_util_filepath.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/test_util_filepath.py b/tests/test_util_filepath.py
index adc08ad..8f3de84 100644
--- a/tests/test_util_filepath.py
+++ b/tests/test_util_filepath.py
@@ -83,20 +83,20 @@ class RemotePathTest(unittest.TestCase):
def test_as_local(self):
filename = "/remote1/path/to/file"
file = FilePath(filename)
- self.assertEqual("/local1//path/to/file",file.as_local())
+ self.assertEqual("/local1/path/to/file",file.as_local())
filename = "/remote2/path/to/file"
file = FilePath(filename)
- self.assertEqual("/local2//path/to/file",file.as_local())
+ self.assertEqual("/local2/path/to/file",file.as_local())
def test_as_local_with_uri(self):
filename = "file:///remote1/path/to/file"
file = FilePath(filename)
- self.assertEqual("/local1//path/to/file",file.as_local())
+ self.assertEqual("/local1/path/to/file",file.as_local())
filename = "file:///remote2/path/to/file"
file = FilePath(filename)
- self.assertEqual("/local2//path/to/file",file.as_local())
+ self.assertEqual("/local2/path/to/file",file.as_local())
def test_as_local_does_nothing(self):
filename = "/the/remote/path/to/file"
@@ -106,29 +106,29 @@ class RemotePathTest(unittest.TestCase):
def test_as_remote_with_unix_paths(self):
filename = "/local1/path/to/file"
file = FilePath(filename)
- self.assertEqual("file:///remote1//path/to/file",file.as_remote())
+ self.assertEqual("file:///remote1/path/to/file",file.as_remote())
filename = "file:///local2/path/to/file"
file = FilePath(filename)
- self.assertEqual("file:///remote2//path/to/file",file.as_remote())
+ self.assertEqual("file:///remote2/path/to/file",file.as_remote())
def test_as_remote_with_win_paths(self):
filename = "C:/local1/path/to/file"
file = FilePath(filename)
- self.assertEqual("file:///C:/remote1//path/to/file",file.as_remote())
+ self.assertEqual("file:///C:/remote1/path/to/file",file.as_remote())
filename = "file:///C:/local2/path/to/file"
file = FilePath(filename)
- self.assertEqual("file:///C:/remote2//path/to/file",file.as_remote())
+ self.assertEqual("file:///C:/remote2/path/to/file",file.as_remote())
def test_as_remote_with_backslashed_win_paths(self):
filename = "C:\\local1\\path\\to\\file"
file = FilePath(filename)
- self.assertEqual("file:///C:/remote1//path/to/file",file.as_remote())
+ self.assertEqual("file:///C:/remote1/path/to/file",file.as_remote())
filename = "C:\\local2\\path\\to\\file"
file = FilePath(filename)
- self.assertEqual("file:///C:/remote2//path/to/file",file.as_remote())
+ self.assertEqual("file:///C:/remote2/path/to/file",file.as_remote())
filename = "C:/local2/path/to/file"
file = FilePath(filename)
@@ -141,11 +141,11 @@ class RemoteWinLocalUnixPathTest(unittest.TestCase):
def test_as_local(self):
filename = "G:\\remote\\path\\to\\file"
file = FilePath(filename)
- self.assertEqual("/local/path//to/file",file.as_local())
+ self.assertEqual("/local/path/to/file",file.as_local())
filename = "file:///G:/remote2/path/to/file"
file = FilePath(filename)
- self.assertEqual("/local2/path//to/file",file.as_local())
+ self.assertEqual("/local2/path/to/file",file.as_local())
def test_as_local_does_nothing(self):
filename = "/the/path/to/file"
@@ -155,11 +155,11 @@ class RemoteWinLocalUnixPathTest(unittest.TestCase):
def test_as_remote(self):
filename = "/local/path/to/file"
file = FilePath(filename)
- self.assertEqual("file:///G:/remote/path//to/file",file.as_remote())
+ self.assertEqual("file:///G:/remote/path/to/file",file.as_remote())
filename = "file:///local2/path/to/file"
file = FilePath(filename)
- self.assertEqual("file:///G:/remote2/path//to/file",file.as_remote())
+ self.assertEqual("file:///G:/remote2/path/to/file",file.as_remote())
class RemoteUnixLocalWinPathTest(unittest.TestCase):
def setUp(self):
@@ -168,11 +168,11 @@ class RemoteUnixLocalWinPathTest(unittest.TestCase):
def test_as_local(self):
filename = "/remote/path/to/file"
file = FilePath(filename)
- self.assertEqual("G:\\local\\path\\\\to\\file",file.as_local())
+ self.assertEqual("G:\\local\\path\\to\\file",file.as_local())
filename = "file:///remote2/path/to/file"
file = FilePath(filename)
- self.assertEqual("G:\\local2\\path\\\\to\\file",file.as_local())
+ self.assertEqual("G:\\local2\\path\\to\\file",file.as_local())
def test_as_local_does_nothing(self):
filename = "G:\\the\\path\\to\\file"
@@ -182,11 +182,11 @@ class RemoteUnixLocalWinPathTest(unittest.TestCase):
def test_as_remote(self):
filename = "G:\\local\\path\\to\\file"
file = FilePath(filename)
- self.assertEqual("file:///remote/path//to/file",file.as_remote())
+ self.assertEqual("file:///remote/path/to/file",file.as_remote())
filename = "file:///G:/local2/path/to/file"
file = FilePath(filename)
- self.assertEqual("file:///remote2/path//to/file",file.as_remote())
+ self.assertEqual("file:///remote2/path/to/file",file.as_remote())
class MismatchingSeparatorsTest(unittest.TestCase):
def setUp(self):