#NEWLINE# @ patch ( 'ws4py.manager.select' ) #NEWLINE# def test_register_twice_does_not_duplicate_fd( self , select ) : #NEWLINE# #INDENT# select . epoll . return_value = FakeEpoll ( ) #NEWLINE# poller = EPollPoller ( ) #NEWLINE# poller . register ( 0 ) #NEWLINE# poller . register ( 0 ) #NEWLINE# fd = poller . poll ( ) #NEWLINE# self . assertEqual ( list ( poller ) , [ 0 ] )