#NEWLINE# def test_unregister_process_operation_precondition( self ) : #NEWLINE# #INDENT# bs = UnitTestService ( ) #NEWLINE# self . assertEqual ( len ( self . governance_controller . get_process_operation_dict ( bs . name ) ) , 0 ) #NEWLINE# self . governance_controller . register_process_operation_precondition ( bs , 'test_op' , bs . func1 ) #NEWLINE# self . assertEqual ( len ( self . governance_controller . get_process_operation_dict ( bs . name ) ) , 1 ) #NEWLINE# self . assertEqual ( len ( self . governance_controller . get_process_operation_dict ( bs . name ) [ 'test_op' ] ) , 1 ) #NEWLINE# self . governance_controller . register_process_operation_precondition ( bs , 'test_op' , 'func2' ) #NEWLINE# self . assertEqual ( len ( self . governance_controller . get_process_operation_dict ( bs . name ) [ 'test_op' ] ) , 2 ) #NEWLINE# self . governance_controller . unregister_process_operation_precondition ( bs , 'test_op' , 'func1' ) #NEWLINE# self . assertEqual ( len ( self . governance_controller . get_process_operation_dict ( bs . name ) [ 'test_op' ] ) , 2 ) #NEWLINE# self . governance_controller . unregister_process_operation_precondition ( bs , 'test_op' , bs . func1 ) #NEWLINE# self . assertEqual ( len ( self . governance_controller . get_process_operation_dict ( bs . name ) [ 'test_op' ] ) , 1 ) #NEWLINE# self . governance_controller . register_process_operation_precondition ( bs , 'test_op' , self . pre_func1 ) #NEWLINE# self . assertEqual ( len ( self . governance_controller . get_process_operation_dict ( bs . name ) [ 'test_op' ] ) , 2 ) #NEWLINE# self . governance_controller . unregister_process_operation_precondition ( bs , 'test_op' , self . pre_func1 ) #NEWLINE# self . assertEqual ( len ( self . governance_controller . get_process_operation_dict ( bs . name ) [ 'test_op' ] ) , 1 ) #NEWLINE# self . governance_controller . unregister_process_operation_precondition ( bs , 'test_op' , 'func2' ) #NEWLINE# self . assertEqual ( len ( self . governance_controller . get_process_operation_dict ( bs . name ) ) , 0 )