'setting socket options with ctx attributes'

def test_sockopts(self):

    ctx = self.Context()
    ctx.linger = 5
    self.assertEqual(ctx.linger, 5)
    s = ctx.socket(zmq.REQ)
    self.assertEqual(s.linger, 5)
    self.assertEqual(s.getsockopt(zmq.LINGER), 5)
    s.close()
    ctx.subscribe = ''
    s = ctx.socket(zmq.REQ)
    s.close()
    ctx.term()
