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)
def test_full_path_empty_path(self): self.assertEquals(parser._full_path(None), None)