'Test that connection can be closed (even when not explicitely opened)'

def test_close_connection(self):

    conn = mail.get_connection(username=u'', password=u'')
    try:
        conn.close()
    except Exception as e:
        self.fail((u'close()    unexpectedly    raised    an    exception:    %s' % e))
