173
152
raise TestSkipped('you must have paramiko to run this test')
175
154
def test_parse_url_with_home_dir(self):
178
156
self.assertEquals(s._host, 'example.com')
179
157
self.assertEquals(s._port, 2222)
180
158
self.assertEquals(s._user, 'robey')
183
160
self.assertEquals(s._path, '/~/relative/')
188
164
self.assertRaises(errors.PathNotChild, s.relpath,
189
165
'sftp://user@host.com/~/rel/path/sub')