Exemplo 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')
Exemplo 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')
Exemplo 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')
Exemplo 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')