'Email autoconfiguration XML file is accessible over both HTTP and HTTPS'

def test_mail_autoconfig_http_and_https(self):

    for proto in ['http', 'https']:
        r = requests.get((((proto + '://autoconfig.') + TEST_SERVER) + '/mail/config-v1.1.xml'))
        self.assertEquals(r.status_code, 200)
        self.assertIn('application/xml', r.headers['Content-Type'])
        self.assertIn('clientConfig    version="1.1"', r.content)
