#NEWLINE# def test_set_adaptation_manager( self ) : #NEWLINE# #INDENT# ex = self . examples #NEWLINE# adaptation_manager = AdaptationManager ( ) #NEWLINE# adaptation_manager . register_factory ( factory = ex . UKStandardToEUStandard , from_protocol = ex . UKStandard , to_protocol = ex . EUStandard ) #NEWLINE# uk_plug = ex . UKPlug ( ) #NEWLINE# set_global_adaptation_manager ( adaptation_manager ) #NEWLINE# global_adaptation_manager = get_global_adaptation_manager ( ) #NEWLINE# eu_plug = global_adaptation_manager . adapt ( uk_plug , ex . EUStandard ) #NEWLINE# self . assertIsNotNone ( eu_plug ) #NEWLINE# self . assertIsInstance ( eu_plug , ex . UKStandardToEUStandard )