Example #1
0
 def test_joinRoot(self):
     deploy.remoteSep = "/"
     self.assertEqual(deploy.remoteJoin("/", "spain"), "/spain")
     self.assertEqual(deploy.remoteJoin("", "spain"), "/spain")
     self.assertEqual(deploy.remoteJoin("/", "/spain"), "/spain")
     self.assertEqual(deploy.remoteJoin("", "/spain"), "/spain")
Example #2
0
 def test_join(self):
     deploy.remoteSep = "/"
     self.assertEqual(deploy.remoteJoin("/path/to", "spain"), "/path/to/spain")
     self.assertEqual(deploy.remoteJoin("/path/to/", "spain"), "/path/to/spain")
     self.assertEqual(deploy.remoteJoin("/path/to", "/spain"), "/path/to/spain")
     self.assertEqual(deploy.remoteJoin("/path/to/", "/spain"), "/path/to/spain")