#NEWLINE# def test_recvfrom_raises_ECONNRESET( self ) : #NEWLINE# #INDENT# self . sock . recvfrom = MagicMock ( side_effect = socket . error ( errno . ECONNRESET ) ) #NEWLINE# result = self . channel . _socket_recvfrom ( ) #NEWLINE# self . assertEqual ( self , ( '' , None ) )