#NEWLINE# def test_strategy_restore_method_creates_new_instance( self ) : #NEWLINE# #INDENT# ( new_instance , user_input , snapshot_ids , errors ) = InstanceBackupStrategy . deserialize_instance ( self . backup . metadata , self . user_input ) #NEWLINE# self . assertIsNone ( errors , ( 'Deserialization errors: %s' % errors ) ) #NEWLINE# self . assertEqual ( new_instance . name , 'new_name' ) #NEWLINE# self . assertNotEqual ( new_instance . id , self . instance . id ) #NEWLINE# self . assertEqual ( new_instance . agreed_sla , self . agreed_sla )