[svn r63137] a helper some basic remote info

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-20 14:41:43 +01:00
parent 764b85f23e
commit 8d8a73784c
2 changed files with 27 additions and 1 deletions

View File

@@ -441,6 +441,13 @@ class BasicRemoteExecution:
text = c1.receive()
assert text.find("execution disallowed") != -1
def test__rinfo(self):
rinfo = self.gw._rinfo()
assert rinfo.executable
assert rinfo.curdir
assert rinfo.version_info
class BasicCmdbasedRemoteExecution(BasicRemoteExecution):
def test_cmdattr(self):
assert hasattr(self.gw, '_cmd')
@@ -480,7 +487,12 @@ def test_channel_endmarker_remote_killterm():
# assert x == 17
class TestPopenGateway(PopenGatewayTestSetup, BasicRemoteExecution):
#disabled = True
def test_remote_info_popen(self):
rinfo = self.gw._rinfo()
assert rinfo.executable == py.std.sys.executable
assert rinfo.curdir == py.std.os.getcwd()
assert rinfo.version_info == py.std.sys.version_info
def test_chdir_separation(self):
old = py.test.ensuretemp('chdirtest').chdir()
try: