#NEWLINE# def test_migrate_raise_conflict_on_invalid_state( self ) : #NEWLINE# #INDENT# method_translations = { #NEWLINE# #INDENT# '_migrate' : 'resize' , #NEWLINE# '_migrate_live' : 'live_migrate' , #NEWLINE# #UNINDENT# } #NEWLINE# body_map = self . _get_migration_body ( host = 'hostname' ) #NEWLINE# args_map = { #NEWLINE# #INDENT# '_migrate_live' : ( ( False , self . disk_over_commit , 'hostname' ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , #NEWLINE# #UNINDENT# } #NEWLINE# exception_arg = { #NEWLINE# #INDENT# '_migrate' : 'migrate' , #NEWLINE# '_migrate_live' : 'os-migrateLive' , #NEWLINE# #UNINDENT# } #NEWLINE# self . _test_actions_raise_conflict_on_invalid_state ( [ '_migrate' , '_migrate_live' ] , body_map = body_map , args_map = args_map , method_translations = method_translations , exception_args = exception_arg )