def test_get_when_no_m2p(self): chan = Mock() q = Queue('a')(chan) chan.message_to_python = None assert q.get()