Esempio n. 1
0
 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')
Esempio n. 2
0
 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')
Esempio n. 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')
Esempio n. 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')