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