def METHOD_NAME(self):
    t = pyamqp.Transport(Mock())
    conn = Mock(name='conn')
    loop = Mock(name='loop')
    t.register_with_event_loop(conn, loop)
    loop.add_reader.assert_called_with(
        conn.sock, t.on_readable, conn, loop,
    )