示例#1
0
 def test_protocol_attribute(self):
     h = SmtpSession(None, None, None)
     self.assertEqual('SMTP', h.protocol)
     h.extended_smtp = True
     self.assertEqual('ESMTP', h.protocol)
     h.security = 'TLS'
     self.assertEqual('ESMTPS', h.protocol)
     h.auth = 'test'
     self.assertEqual('ESMTPSA', h.protocol)
 def test_protocol_attribute(self):
     h = SmtpSession(None, None, None)
     assert_equal('SMTP', h.protocol)
     h.extended_smtp = True
     assert_equal('ESMTP', h.protocol)
     h.security = 'TLS'
     assert_equal('ESMTPS', h.protocol)
     h.auth_result = 'test'
     assert_equal('ESMTPSA', h.protocol)
示例#3
0
 def test_protocol_attribute(self):
     h = SmtpSession(None, None, None)
     self.assertEqual('SMTP', h.protocol)
     h.extended_smtp = True
     self.assertEqual('ESMTP', h.protocol)
     h.security = 'TLS'
     self.assertEqual('ESMTPS', h.protocol)
     h.auth = 'test'
     self.assertEqual('ESMTPSA', h.protocol)
 def test_protocol_attribute(self):
     h = SmtpSession(None, None, None)
     self.assertEqual("SMTP", h.protocol)
     h.extended_smtp = True
     self.assertEqual("ESMTP", h.protocol)
     h.security = "TLS"
     self.assertEqual("ESMTPS", h.protocol)
     h.auth_result = "test"
     self.assertEqual("ESMTPSA", h.protocol)