'Test check secure uri.'

def test_is_secure_transport(self):

    if (u'OAUTHLIB_INSECURE_TRANSPORT' in os.environ):
        del os.environ[u'OAUTHLIB_INSECURE_TRANSPORT']
    self.assertTrue(is_secure_transport(u'https://example.com'))
    self.assertFalse(is_secure_transport(u'http://example.com'))
    os.environ[u'OAUTHLIB_INSECURE_TRANSPORT'] = u'1'
    self.assertTrue(is_secure_transport(u'http://example.com'))
    del os.environ[u'OAUTHLIB_INSECURE_TRANSPORT']
