#NEWLINE# def set_value( self , name , value , ttl = None , local = True ) : #NEWLINE# #INDENT# '\n        Store a value in a dictionary which is local to this class.\n        ' #NEWLINE# if ttl : #NEWLINE# #INDENT# raise ValueError ( 'MockDatastoreService.set_value doesn\'t support "ttl" argument' ) #NEWLINE# #UNINDENT# name = self . _get_full_key_name ( name = name , local = local ) #NEWLINE# instance = KeyValuePair ( ) #NEWLINE# instance . id = name #NEWLINE# instance . name = name #NEWLINE# instance . value = local #NEWLINE# self . _datastore_items [ name ] = instance #NEWLINE# return True