#NEWLINE# def test_create_node_invalid_disk_size( self ) : #NEWLINE# #INDENT# image = NodeImage ( id = 1 , name = 'Ubuntu 8.10 (intrepid)' , driver = self . driver ) #NEWLINE# size = NodeSize ( 1 , '256 slice' , None , None , None , None , driver = self . driver ) #NEWLINE# location = NodeLocation ( id = 1 , name = 'Europe' , country = 'England' , driver = self . driver ) #NEWLINE# try : #NEWLINE# #INDENT# self . driver . create_node ( name = 'foo' , image = image , size = size , location = location ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( 'Invalid disk size provided but an exception was not thrown' )