Commit a1c75b7c authored by Vincent Pelletier's avatar Vincent Pelletier

Uniformise checks among test_Connection_writable methods.

parent c6b73bcb
...@@ -520,6 +520,7 @@ class ConnectionTests(NeoUnitTestBase): ...@@ -520,6 +520,7 @@ class ConnectionTests(NeoUnitTestBase):
self._checkSend(1, "testdata") self._checkSend(1, "testdata")
self._checkWriteBuf(bc, "data") self._checkWriteBuf(bc, "data")
self._checkConnectionClosed(0) self._checkConnectionClosed(0)
self._checkClose(0)
self._checkUnregistered(0) self._checkUnregistered(0)
# pending, so nothing called # pending, so nothing called
self.assertTrue(bc.pending()) self.assertTrue(bc.pending())
...@@ -543,6 +544,7 @@ class ConnectionTests(NeoUnitTestBase): ...@@ -543,6 +544,7 @@ class ConnectionTests(NeoUnitTestBase):
# test send was called # test send was called
self._checkSend(1, "testdata") self._checkSend(1, "testdata")
self._checkWriteBuf(bc, '') self._checkWriteBuf(bc, '')
self._checkConnectionClosed(0)
self._checkClose(0) self._checkClose(0)
self._checkUnregistered(0) self._checkUnregistered(0)
# nothing else pending, and aborted is false, so writer has been removed # nothing else pending, and aborted is false, so writer has been removed
...@@ -569,6 +571,7 @@ class ConnectionTests(NeoUnitTestBase): ...@@ -569,6 +571,7 @@ class ConnectionTests(NeoUnitTestBase):
self._checkSend(1, "testdata") self._checkSend(1, "testdata")
self._checkWriteBuf(bc, '') self._checkWriteBuf(bc, '')
self._checkConnectionClosed(1) self._checkConnectionClosed(1)
self._checkClose(1)
self._checkUnregistered(1) self._checkUnregistered(1)
# nothing else pending, and aborted is false, so writer has been removed # nothing else pending, and aborted is false, so writer has been removed
self.assertFalse(bc.pending()) self.assertFalse(bc.pending())
......
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