예제 #1
0
 def test_should_droppriv_if_app_path_is_passed(self):
   app_path = os.path.join('../', os.path.dirname(__file__), 'app-path')
   argv = ['--app-path=%s' % app_path]
   stat = os.stat(parser._full_path(app_path))
   opts = self._parse(*argv)
   self.assertEquals(opts['uid'], stat.st_uid)
   self.assertEquals(opts['gid'], stat.st_gid)
예제 #2
0
 def test_should_droppriv_if_app_path_is_passed(self):
     app_path = os.path.join('../', os.path.dirname(__file__), 'app-path')
     argv = ['--app-path=%s' % app_path]
     stat = os.stat(parser._full_path(app_path))
     opts = self._parse(*argv)
     self.assertEquals(opts['uid'], stat.st_uid)
     self.assertEquals(opts['gid'], stat.st_gid)
예제 #3
0
 def test_full_path_empty_path(self):
   self.assertEquals(parser._full_path(None), None)
예제 #4
0
 def test_full_path_empty_path(self):
     self.assertEquals(parser._full_path(None), None)