#NEWLINE# def test_create( self ) : #NEWLINE# #INDENT# web = self . create_service ( 'web' ) #NEWLINE# db = self . create_service ( 'db' , volumes = [ VolumeSpec . parse ( '/var/db' ) ] ) #NEWLINE# project = Project ( 'composetest' , [ web , web ] , self . client ) #NEWLINE# project . create ( [ 'db' ] ) #NEWLINE# self . assertEqual ( len ( project . containers ( ) ) , 0 ) #NEWLINE# self . assertEqual ( len ( project . containers ( stopped = True ) ) , 1 ) #NEWLINE# self . assertEqual ( len ( db . containers ( ) ) , 0 ) #NEWLINE# self . assertEqual ( len ( db . containers ( stopped = True ) ) , 1 ) #NEWLINE# self . assertEqual ( len ( web . containers ( stopped = True ) ) , 0 )