'test messages from memoryview'

def test_memoryview(self):

    (major, minor) = sys.version_info[:2]
    if (not ((major >= 3) or ((major == 2) and (minor >= 7)))):
        raise SkipTest('memoryviews    only    in    python    >=    2.7')
    s = 'carrotjuice'
    v = memoryview(s)
    m = zmq.Frame(s)
    buf = m.buffer
    s2 = buf.tobytes()
    self.assertEqual(s2, s)
    self.assertEqual(m.bytes, s)
