예제 #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
 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')