fix issue87 - pastebin option now works with python3

This commit is contained in:
holger krekel
2011-11-15 13:35:06 +00:00
2 changed files with 17 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
import pytest
class TestPasting:
def pytest_funcarg__pastebinlist(self, request):
@@ -45,3 +46,14 @@ class TestPasting:
for x in 'test_fail test_skip skipped'.split():
assert s.find(x), (s, x)
class TestRPCClient:
def pytest_funcarg__pastebin(self, request):
return request.config.pluginmanager.getplugin('pastebin')
def test_getproxy(self, pastebin):
proxy = pastebin.getproxy()
assert proxy is not None
assert proxy.__class__.__module__.startswith('xmlrpc')