#NEWLINE# def __contains__( self , name ) : #NEWLINE# #INDENT# 'Return whether the server contains a database with the specified\n        name.\n\n        :param name: the database name\n        :return: `True` if a database with the name exists, `False` otherwise\n        ' #NEWLINE# try : #NEWLINE# #INDENT# self . resource . head ( self ) #NEWLINE# return True #NEWLINE# #UNINDENT# except http . ResourceNotFound : #NEWLINE# #INDENT# return False