<s> from circuits import Manager <EOL> from circuits . core . utils import findtype <EOL> from circuits . core . pollers import BasePoller , Poller <EOL> from circuits . net . sockets import TCPServer , TCPClient <EOL> def test ( ) : <EOL> m = Manager ( ) <EOL> poller = Poller ( ) . register ( m ) <EOL> TCPServer ( <NUM_LIT:0> ) . register ( m ) <EOL> TCPClient ( ) . register ( m ) <EOL> m . start ( ) <EOL> try : <EOL> pollers = findtype ( m , BasePoller , all = True ) <EOL> assert len ( pollers ) == <NUM_LIT:1> <EOL> assert pollers [ <NUM_LIT:0> ] is poller <EOL> finally : <EOL> m . stop ( ) </s>
