#NEWLINE# def test_get_resource_instance_by_experiment_instance_id_failing( self ) : #NEWLINE# #INDENT# session = self . session_maker ( ) #NEWLINE# try : #NEWLINE# #INDENT# exp_id = ExperimentInstanceId ( 'exp1' , 'ud-pld' , 'PLD Experiments' ) #NEWLINE# self . resources_manager . add_experiment_instance_id ( 'laboratory1:WL_SERVER1@WL_MACHINE1' , exp_id , Resource ( 'type' , 'instance' ) ) #NEWLINE# session . commit ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# session . close ( ) #NEWLINE# #UNINDENT# exp_invalid_type = ExperimentInstanceId ( 'exp1' , 'ud-pld.invalid' , 'PLD Experiments' ) #NEWLINE# self . assertRaises ( CoordExc . ExperimentNotFoundError , self . resources_manager . get_resource_instance_by_experiment_instance_id , exp_invalid_type ) #NEWLINE# exp_invalid_inst = ExperimentInstanceId ( 'exp.invalid' , 'ud-pld' , 'PLD Experiments' ) #NEWLINE# self . assertRaises ( CoordExc . ExperimentNotFoundError , exp_id . resources_manager . get_resource_instance_by_experiment_instance_id , exp_invalid_inst )