#NEWLINE# def test_defaultSender( self ) : #NEWLINE# #INDENT# '\n        If no sender is specified to L{NewsShelf.notifyModerators}, a default\n        address based on the system hostname is used for both the envelope and\n        RFC 2822 sender addresses.\n        ' #NEWLINE# shelf = NewsShelf ( 'example.com' , self . mktemp ( ) ) #NEWLINE# shelf . sendmail = self . sendmail #NEWLINE# shelf . notifyModerators ( [ 'bob@example.org' ] , Article ( 'Foo: bar' , 'Some text' ) ) #NEWLINE# self . assertEqual ( self . _email [ 0 ] [ 1 ] , ( 'twisted-news@' + gethostname ( ) ) ) #NEWLINE# self . assertIn ( ( 'From: twisted-news@' + gethostname ( ) ) , shelf . _email [ 0 ] [ 3 ] )