#NEWLINE# def test_get_rcpt_domain_error( self ) : #NEWLINE# #INDENT# env = Envelope ( 'sender@example.com' , [ 'badrcpt' ] ) #NEWLINE# mx = MxSmtpRelay ( ) #NEWLINE# self . assertRaises ( NoDomainError , mx . _get_rcpt_domain , mx )