コード例 #1
0
ファイル: test_virt.py プロジェクト: danwent/nova
 def test_check_safe_path(self):
     ret = disk_api._join_and_check_path_within_fs('/foo', 'etc',
                                                   'something.conf')
     self.assertEquals(ret, '/foo/etc/something.conf')
コード例 #2
0
ファイル: test_virt.py プロジェクト: mattstep/nova
 def test_check_safe_path(self):
     ret = disk_api._join_and_check_path_within_fs('/foo', 'etc',
                                                   'something.conf')
     self.assertEquals(ret, '/foo/etc/something.conf')
コード例 #3
0
ファイル: test_virt.py プロジェクト: DarkSinclair/nova
 def test_check_safe_path(self):
     if tests.utils.is_osx():
         self.skipTest("Unable to test on OSX")
     ret = disk_api._join_and_check_path_within_fs('/foo', 'etc',
                                                   'something.conf')
     self.assertEquals(ret, '/foo/etc/something.conf')
コード例 #4
0
 def test_check_safe_path(self):
     if tests.utils.is_osx():
         self.skipTest("Unable to test on OSX")
     ret = disk_api._join_and_check_path_within_fs('/foo', 'etc',
                                                   'something.conf')
     self.assertEquals(ret, '/foo/etc/something.conf')