コード例 #1
0
ファイル: tests_s3boto.py プロジェクト: jespino/pydstorages
 def test_with_dot(self):
     path = s3boto.safe_join("", "path/./somewhere/../other", "..", ".", "to/./somewhere")
     self.assertEquals(path, "path/to/somewhere")
コード例 #2
0
ファイル: tests_s3boto.py プロジェクト: jespino/pydstorages
 def test_base_url_with_slash(self):
     path = s3boto.safe_join("base_url/", "path/to/somewhere")
     self.assertEquals(path, "base_url/path/to/somewhere")
コード例 #3
0
ファイル: tests_s3boto.py プロジェクト: jespino/pydstorages
 def test_normal(self):
     path = s3boto.safe_join("", "path/to/somewhere", "other", "path/to/somewhere")
     self.assertEquals(path, "path/to/somewhere/other/path/to/somewhere")