From 8d47194612937ab18328243e3db67d7311574e75 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 3 Apr 2017 23:51:07 -0700 Subject: [PATCH] check when_version() can be called late as well as early --- src/wormhole/test/test_wormhole_new.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wormhole/test/test_wormhole_new.py b/src/wormhole/test/test_wormhole_new.py index 92333b6..6e295ba 100644 --- a/src/wormhole/test/test_wormhole_new.py +++ b/src/wormhole/test/test_wormhole_new.py @@ -76,6 +76,9 @@ class New(ServerBase, unittest.TestCase): data2 = yield w1.when_received() self.assertEqual(data2, b"data2") + version1_again = yield w1.when_version() + self.assertEqual(version1, version1_again) + c1 = yield w1.close() self.assertEqual(c1, "happy") c2 = yield w2.close()