def login(self, username, password):
        try:
            request_data = {'postUserLogin': {
                              'login': username,
                              'password': password,
                              'remember': 1,
                              }}
            response = self.request(self.LOGIN_URI, request_data)
            response['userLogin']['profile']
            self.request(self.TOKEN_URI)
        except urllib2.URLError:
            raise AuthenticationError('Please provide correct username and password.')
        except __HOLE__:
            raise AuthenticationError('No userLogin information in response to login.')
dataset/ETHPy150Open comoga/gooddata-python/gooddataclient/connection.py/Connection.login