#NEWLINE# def test_reset_adaptation_manager( self ) : #NEWLINE# #INDENT# ex = self . examples #NEWLINE# adaptation_manager = get_global_adaptation_manager ( ) #NEWLINE# adaptation_manager . register_factory ( factory = ex . UKStandardToEUStandard , from_protocol = ex . UKStandard , to_protocol = adaptation_manager . EUStandard ) #NEWLINE# uk_plug = ex . UKPlug ( ) #NEWLINE# reset_global_adaptation_manager ( ) #NEWLINE# adaptation_manager = get_global_adaptation_manager ( ) #NEWLINE# with self . assertRaises ( AdaptationError ) : #NEWLINE# #INDENT# adaptation_manager . adapt ( uk_plug , ex . EUStandard )