2013-04-22 14:23:13 +00:00
|
|
|
from nose import SkipTest
|
|
|
|
|
2010-11-12 10:50:18 +00:00
|
|
|
from funtests import transport
|
2010-11-12 10:00:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
class test_couchdb(transport.TransportCase):
|
2013-04-15 16:44:13 +00:00
|
|
|
transport = 'couchdb'
|
|
|
|
prefix = 'couchdb'
|
2010-11-12 10:00:35 +00:00
|
|
|
event_loop_max = 100
|
|
|
|
|
2013-04-22 14:23:13 +00:00
|
|
|
def before_connect(self):
|
|
|
|
try:
|
|
|
|
import couchdb # noqa
|
|
|
|
except ImportError:
|
|
|
|
raise SkipTest('couchdb not installed')
|
|
|
|
|
2010-11-12 10:00:35 +00:00
|
|
|
def after_connect(self, connection):
|
|
|
|
connection.channel().client
|