Commit cb1730b3 authored by Tres Seaver's avatar Tres Seaver

Suppress stray ZEO.zrpc logging output.

parent c3612256
......@@ -263,15 +263,19 @@ class TestClientStorageURIResolver(unittest.TestCase):
def test_invoke_factory(self, ClientStorage):
resolver = self._makeOne()
factory, dbkw = resolver('zeo:///var/nosuchfile?wait=false')
factory()
storage = factory()
storage.close()
ClientStorage.assert_called_once_with('/var/nosuchfile', wait=0)
def test_invoke_factory_demostorage(self):
@mock.patch('zodburi.resolvers.ClientStorage')
def test_invoke_factory_demostorage(self, ClientStorage):
from ZODB.DemoStorage import DemoStorage
resolver = self._makeOne()
factory, dbkw = resolver('zeo:///var/nosuchfile?wait=false'
'&demostorage=true')
self.assertTrue(isinstance(factory(), DemoStorage))
storage = factory()
storage.close()
self.assertTrue(isinstance(storage, DemoStorage))
def test_dbargs(self):
resolver = self._makeOne()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment