def test_helper_masked_ping_message(self): s = Stream(always_mask=True) m = s.ping('sos') self.assertIsInstance(m, bytes) self.assertEqual(len(m), 9)
def test_helper_ping_message(self): s = Stream() m = s.ping('sos') self.assertIsInstance(m, bytes) self.assertEqual(len(m), 5)