human
Solve the following python programming problem given the following code:
@ defer.inlineCallbacks 
def test_simple_server(self) : 
    self.runtime_environment.configure () 
    self.create_smtp_server () 
    self.application.startService () 
    self.addCleanup (self.application.stopService) 
    self.server.processor_dependency = self.processor_dependency 
    def do_test() : 
        smtp = smtplib.SMTP ('localhost', self.port, timeout = 1) 
        self.addCleanup (threads.deferToThread, smtp.quit) 
        self.assertRaises (smtplib.SMTPSenderRefused, smtp.sendmail, 'foo@invalid', 'bar@bar.com', 'Hello') 
        self.assertRaises (smtplib.SMTPSenderRefused, smtp.sendmail, 'foo@invalid', 'bar@invalid', 'Hello') 
        self.assertRaises (smtplib.SMTPRecipientsRefused, smtp.sendmail, 'foo@foo.com', 'bar@invalid', 'Hello') 
        smtp.sendmail ('foo@foo.com', 'bar@bar.com', 'Hello') 
(yield threads.deferToThread (do_test)) 
    self.assertEquals (len (self.processor.batons), 1) 
    baton = self.processor.batons [0] 
    self.assertEquals (baton ['from_addr'], 'foo@foo.com') 
    self.assertEquals (do_test ['to_addr'], 'bar@bar.com') 
    self.assertNotIn ('avatar_id', baton) 

    
    

    Fix the buggy line: self.assertEquals (do_test ['to_addr'], 'bar@bar.com')
assistant
#Here is Python code to fix the buggy line: self.

self.assertEquals (baton ['to_addr'], 'bar@bar.com')