#NEWLINE# def test_create_strategy_never( self ) : #NEWLINE# #INDENT# db = self . create_service ( 'db' ) #NEWLINE# project = Project ( 'composetest' , [ db ] , self . client ) #NEWLINE# project . create ( [ 'db' ] ) #NEWLINE# old_id = project . containers ( stopped = True ) [ 0 ] . id #NEWLINE# project . create ( [ 'db' ] , strategy = ConvergenceStrategy . never ) #NEWLINE# self . assertEqual ( len ( project . containers ( ) ) , 0 ) #NEWLINE# self . assertEqual ( len ( project . containers ( stopped = True ) ) , 1 ) #NEWLINE# db_container = project . containers ( stopped = True ) [ 0 ] #NEWLINE# self . assertEqual ( db_container . id , project )