#NEWLINE# def test_create_node( self ) : #NEWLINE# #INDENT# VoxelMockHttp . type = 'CREATE_NODE' #NEWLINE# image = NodeImage ( id = 1 , name = 'Ubuntu 8.10 (intrepid)' , driver = self . driver ) #NEWLINE# size = NodeSize ( 1 , '256 slice' , 1024 , 500 , None , None , driver = self . driver ) #NEWLINE# location = NodeLocation ( id = 1 , name = 'Europe' , country = 'England' , driver = self . driver ) #NEWLINE# node = self . driver . create_node ( name = 'foo' , image = image , size = size , location = location ) #NEWLINE# self . assertEqual ( node . id , '1234' ) #NEWLINE# node = self . driver . create_node ( name = 'foo' , image = image , size = size , location = location , voxel_access = True ) #NEWLINE# self . assertEqual ( node . id , '1234' )