<s> from cloudify . decorators import operation <EOL> from testenv . utils import update_storage <EOL> @ operation <EOL> def create ( ctx , ** kwargs ) : <EOL> with update_storage ( ctx ) as data : <EOL> data [ ctx . instance . id ] = data . get ( ctx . instance . id , [ ] ) <EOL> data [ ctx . instance . id ] . append ( '<STR_LIT>' ) <EOL> @ operation <EOL> def start ( ctx , ** kwargs ) : <EOL> with update_storage ( ctx ) as data : <EOL> data [ ctx . instance . id ] = data . get ( ctx . instance . id , [ ] ) <EOL> data [ ctx . instance . id ] . append ( '<STR_LIT:start>' ) <EOL> @ operation <EOL> def stop ( ctx , ** kwargs ) : <EOL> with update_storage ( ctx ) as data : <EOL> data [ ctx . instance . id ] = data . get ( ctx . instance . id , [ ] ) <EOL> data [ ctx . instance . id ] . append ( '<STR_LIT>' ) <EOL> @ operation <EOL> def delete ( ctx , ** kwargs ) : <EOL> with update_storage ( ctx ) as data : <EOL> data [ ctx . instance . id ] = data . get ( ctx . instance . id , [ ] ) <EOL> data [ ctx . instance . id ] . append ( '<STR_LIT>' ) </s>
