@@ -0,0 +1,1240 @@
+#!/usr/bin/env python%0A# -*- coding:utf-8 -*-%0A%0A%0Adef test_smtp_vendor_init():%0A    from iris.vendors.iris_smtp import iris_smtp%0A    smtp_config = %7B%0A        'smtp_server': 'foo'%0A    %7D%0A    smtp_vendor = iris_smtp(smtp_config)%0A    assert smtp_vendor.smtp_timeout == 10%0A    assert smtp_vendor.mx_sorted == %5B(0, 'foo')%5D%0A%0A    smtp_config = %7B%0A        'timeout': 20,%0A        'smtp_server': 'foo'%0A    %7D%0A    smtp_vendor = iris_smtp(smtp_config)%0A    assert smtp_vendor.smtp_timeout == 20%0A%0A%0Adef test_smtp_send_email(mocker):%0A    from iris.vendors.iris_smtp import iris_smtp%0A    smtp_config = %7B%0A        'smtp_server': 'foo',%0A        'from': 'iris@bar',%0A    %7D%0A    smtp_vendor = iris_smtp(smtp_config)%0A    mocked_SMPT = mocker.patch('iris.vendors.iris_smtp.SMTP')%0A    smtp_vendor.send_email(%7B%0A        'destination': 'foo@bar',%0A        'subject': 'hello',%0A        'body': 'world',%0A    %7D)%0A    mocked_SMPT.assert_called_once_with(timeout=10)%0A%0A    class CheckEmailString(str):%0A        def __eq__(self, other):%0A            return 'hello' in other and 'world' in other%0A%0A    mocked_SMPT.return_value.sendmail.assert_called_once_with(%0A        %5B'iris@bar'%5D,%0A        %5B'foo@bar'%5D,%0A        CheckEmailString())%0A    mocked_SMPT.return_value.quit.assert_called_once_with()%0A

add tests for smtp vendor