#NEWLINE# def test_save_errors( self ) : #NEWLINE# #INDENT# floatingip = floating_ip . FloatingIP ( context = self . context , id = 123 , host = 'foo' ) #NEWLINE# floatingip . obj_reset_changes ( ) #NEWLINE# floating_ip . address = '1.2.3.4' #NEWLINE# self . assertRaises ( exception . ObjectActionError , floatingip . save ) #NEWLINE# floatingip . obj_reset_changes ( ) #NEWLINE# floatingip . fixed_ip_id = 1 #NEWLINE# self . assertRaises ( exception . ObjectActionError , self . save )