[svn r62244] fixed wrongly renamed methods

--HG--
branch : trunk
This commit is contained in:
hpk 2009-02-27 16:45:31 +01:00
parent c17a09adaf
commit 27110ea361
1 changed files with 9 additions and 9 deletions

View File

@ -399,28 +399,28 @@ class TestSessionAndOptions:
def test_implied_dsession(self, testdir): def test_implied_dsession(self, testdir):
for x in 'startserver runbrowser rest'.split(): for x in 'startserver runbrowser rest'.split():
config = testdir.parseconfig(testdir.tmpdir, '--dist', '--%s' % x) config = testdir.parseconfig(testdir.tmpdir, '--dist', '--%s' % x)
assert config._getestdirname() == 'DSession' assert config._getsessionname() == 'DSession'
def test_implied_different_sessions(self, tmpdir): def test_implied_different_sessions(self, tmpdir):
config = py.test.config._reparse([tmpdir]) config = py.test.config._reparse([tmpdir])
assert config._getestdirname() == 'Session' assert config._getsessionname() == 'Session'
config = py.test.config._reparse([tmpdir, '--dist']) config = py.test.config._reparse([tmpdir, '--dist'])
assert config._getestdirname() == 'DSession' assert config._getsessionname() == 'DSession'
config = py.test.config._reparse([tmpdir, '-n3']) config = py.test.config._reparse([tmpdir, '-n3'])
assert config._getestdirname() == 'DSession' assert config._getsessionname() == 'DSession'
config = py.test.config._reparse([tmpdir, '--looponfailing']) config = py.test.config._reparse([tmpdir, '--looponfailing'])
assert config._getestdirname() == 'LooponfailingSession' assert config._getsessionname() == 'LooponfailingSession'
config = py.test.config._reparse([tmpdir, '--exec=x']) config = py.test.config._reparse([tmpdir, '--exec=x'])
assert config._getestdirname() == 'DSession' assert config._getsessionname() == 'DSession'
config = py.test.config._reparse([tmpdir, '--dist', '--exec=x']) config = py.test.config._reparse([tmpdir, '--dist', '--exec=x'])
assert config._getestdirname() == 'DSession' assert config._getsessionname() == 'DSession'
config = py.test.config._reparse([tmpdir, '-f', config = py.test.config._reparse([tmpdir, '-f',
'--dist', '--exec=x']) '--dist', '--exec=x'])
assert config._getestdirname() == 'LooponfailingSession' assert config._getsessionname() == 'LooponfailingSession'
config = py.test.config._reparse([tmpdir, '-f', '-n3', config = py.test.config._reparse([tmpdir, '-f', '-n3',
'--dist', '--exec=x', '--dist', '--exec=x',
'--collectonly']) '--collectonly'])
assert config._getestdirname() == 'Session' assert config._getsessionname() == 'Session'
def test_sessionname_lookup_custom(self, testdir): def test_sessionname_lookup_custom(self, testdir):
testdir.makepyfile(conftest=""" testdir.makepyfile(conftest="""