check when_version() can be called late as well as early

This commit is contained in:
Brian Warner 2017-04-03 23:51:07 -07:00
parent 580c5a4712
commit 8d47194612

View File

@ -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()