#NEWLINE# def test01_create_and_add( self ) : #NEWLINE# #INDENT# rc = ResourceContainer ( resources = [ ] ) #NEWLINE# self . assertEqual ( len ( rc . resources ) , 0 , 'empty' ) #NEWLINE# rc . resources . append ( Resource ( 'a' , timestamp = 1 ) ) #NEWLINE# rc . resources . append ( Resource ( 'b' , timestamp = 2 ) ) #NEWLINE# self . assertEqual ( len ( rc . resources ) , 2 , 'two resources' )