Tests passing

This commit is contained in:
Ask Solem 2011-04-21 14:03:39 +02:00
parent 506d9b27c6
commit 3aa889fa57
2 changed files with 2 additions and 4 deletions

View File

@ -282,9 +282,10 @@ class test_Redis(unittest.TestCase):
def test_close_poller_not_active(self):
c = BrokerConnection(transport=Transport).channel()
cycle = c.connection.cycle
c.client.connection
c.close()
self.assertNotIn(c, c.connection.cycle._channels)
self.assertNotIn(c, cycle._channels)
def test_close_ResponseError(self):
c = BrokerConnection(transport=Transport).channel()

View File

@ -342,9 +342,6 @@ class test_Transport(unittest.TestCase):
def setUp(self):
self.transport = client().transport
def test_close_nonexisting_channel(self):
self.transport.close_channel("foo")
def test_close_connection(self):
c1 = self.transport.create_channel(self.transport)
c2 = self.transport.create_channel(self.transport)