165
165
def test_authenticate_with_byte_strings(self):
168
168
factory = WideOpenSMTPFactory()
169
169
conn = self.get_connection(
170
170
'[DEFAULT]\nsmtp_username=%s\nsmtp_password=%s\n'
171
171
% (user, password), smtp_factory=factory)
173
174
self.assertEqual([('connect', 'localhost'),
175
176
('has_extn', 'starttls'),
176
177
('login', user, password)], factory._calls)
179
180
self.assertIsInstance(smtp_password, str)
181
182
def test_create_connection(self):