def __init__(self, url=SERVER_URL, basic_auth={}, form_auth={},
                 http_opts={}, request_opts={}):
        import httplib2
        self.HttpLib2Error = httplib2.HttpLib2Error
        self.url = url
        self.request_opts = request_opts
        self.auth_type = 'basic_auth' if basic_auth else (
            'form_auth' if form_auth else None)
        self.auth = basic_auth if basic_auth else (
            form_auth if form_auth else None)
        
        self.http = httplib2.Http(**http_opts)
        if self.auth_type == 'basic_auth':
            self.http.add_credentials(
                self.auth['username'], self.auth['password'])
        elif self.auth_type == 'form_auth':
            if 'url' not in self.auth:
                raise PlantUMLError(
                    "The form_auth option 'url' must be provided and point to "
                    "the login url.")
            if self.auth not in 'body':
                raise PlantUMLError(
                    "The form_auth option 'body' must be provided and include "
                    "a dictionary with the form elements required to log in. "
                    "Example: form_auth={'url': 'http://example.com/login/', "
                    "'body': { 'username': 'me', 'password': 'secret'}")
            login_url = self.auth['url']
            body = self.auth['body']
            method = self.auth.get('method', 'POST')
            headers = self.auth.get(
                'headers',{'Content-type':'application/x-www-form-urlencoded'})
            
            try:
                response, content = http.request(
                    login_url, method, headers=headers,
                    body=urllib.urlencode(body))
            except self.HttpLib2Error, e:
                raise PlantUMLConnectionError(e)
            if response.status != 200:
                raise PlantUMLHTTPError(response, content)
            self.request_opts['Cookie'] = response['set-cookie']
dataset/ETHPy150Open dougn/python-plantuml/plantuml.py/PlantUML.__init__/swapped operands of `not in`