def has_credentials(self):
        """
        Does this session have valid credentials
        
        :rtype: bool
        """
        return all([
            getattr(self, '_%s' % field, None) is not None
            for field in self.CredentialMap.get(self.provider_name)])
def has_credentials ( self ) : return all ( [ getattr ( self , '_%s' % field , None ) is not None for field in self . CredentialMap . get ( self . provider_name ) ] )
Does this session have valid credentials
        
        :rtype: bool