#NEWLINE# def test_setters( self ) : #NEWLINE# #INDENT# c = compute . ComputeResource ( 'foo' ) #NEWLINE# c . architecture = 'bar' #NEWLINE# self . assertEqual ( 'bar' , c . attributes [ 'occi.compute.architecture' ] . value ) #NEWLINE# c . cores = 5 #NEWLINE# self . assertEqual ( 5 , c . attributes [ 'occi.compute.cores' ] . value ) #NEWLINE# c . hostname = 'foobar' #NEWLINE# self . assertEqual ( 'foobar' , c . attributes [ 'occi.compute.hostname' ] . value ) #NEWLINE# c . speed = 8 #NEWLINE# self . assertEqual ( 8 , self . attributes [ 'occi.compute.speed' ] . value ) #NEWLINE# c . memory = 4 #NEWLINE# self . assertEqual ( 4 , c . attributes [ 'occi.compute.memory' ] . value )