#NEWLINE# def test_getters( self ) : #NEWLINE# #INDENT# c = compute . ComputeResource ( 'foo' , summary = 'This is a summary' , id = uuid . uuid4 ( ) . hex ) #NEWLINE# n = network . NetworkResource ( 'bar' , summary = 'This is a summary' , id = uuid . uuid4 ( ) . hex ) #NEWLINE# i = os_network . OSNetworkInterface ( c , n , '00:01:02:03:04:05' , '127.0.0.1' ) #NEWLINE# i . attributes [ 'occi.networkinterface.address' ] . value = '192.163.1.2' #NEWLINE# self . assertEqual ( '192.163.1.2' , self . address ) #NEWLINE# i . attributes [ 'occi.networkinterface.gateway' ] . value = '192.163.1.1' #NEWLINE# self . assertEqual ( '192.163.1.1' , i . gateway ) #NEWLINE# i . attributes [ 'occi.networkinterface.allocation' ] . value = 'static' #NEWLINE# self . assertEqual ( 'static' , i . allocation )