diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-08-25 22:22:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-08-25 22:22:28 (GMT) |
commit | 52bb949fd3658957fb8719fd83183b38d9fb621c (patch) | |
tree | a445a45fe33a5e30f25d3cbaa213519658b6d637 /Lib/test/test_asyncio/test_transports.py | |
parent | b261475a48d905f160bc1f499e90b995b0d0b6c0 (diff) | |
download | cpython-52bb949fd3658957fb8719fd83183b38d9fb621c.zip cpython-52bb949fd3658957fb8719fd83183b38d9fb621c.tar.gz cpython-52bb949fd3658957fb8719fd83183b38d9fb621c.tar.bz2 |
asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() method
Diffstat (limited to 'Lib/test/test_asyncio/test_transports.py')
-rw-r--r-- | Lib/test/test_asyncio/test_transports.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_transports.py b/Lib/test/test_asyncio/test_transports.py index cfbdf3e..5be1b7b 100644 --- a/Lib/test/test_asyncio/test_transports.py +++ b/Lib/test/test_asyncio/test_transports.py @@ -79,9 +79,11 @@ class TransportTests(unittest.TestCase): transport.set_write_buffer_limits(high=1024, low=128) self.assertFalse(transport._protocol_paused) + self.assertEqual(transport.get_write_buffer_limits(), (128, 1024)) transport.set_write_buffer_limits(high=256, low=128) self.assertTrue(transport._protocol_paused) + self.assertEqual(transport.get_write_buffer_limits(), (128, 256)) if __name__ == '__main__': |