# Pastebin iiR04JEe status = yield from ep_mod.ev.pending.read() self.assertTrue(status) trigger = yield ep_mod.ev.packet.trigger self.assertFalse(bool(trigger)) yield ep_mod.ev.packet.clear.eq(1) yield yield yield yield yield yield yield ep_mod.ev.packet.clear.eq(0) yield yield yield yield yield trigger = yield ep_mod.ev.packet.trigger self.assertFalse(bool(trigger)) pending = yield ep_mod.ev.packet.pending print("pending:", pending) self.assertFalse(bool(pending))