#NEWLINE# def _disable_stub( self , service_name ) : #NEWLINE# #INDENT# 'Disable a service stub.\n\n    Args:\n      service_name: The name of the service to disable.\n\n    Raises:\n      NotActivatedError: The testbed is not activated.\n    ' #NEWLINE# if ( not self . _activated ) : #NEWLINE# #INDENT# raise NotActivatedError ( 'The testbed is not activated.' ) #NEWLINE# #UNINDENT# deactivate_callback = self . _enabled_stubs . pop ( service_name , None ) #NEWLINE# if deactivate_callback : #NEWLINE# #INDENT# deactivate_callback ( self . _test_stub_map . GetStub ( service_name ) ) #NEWLINE# #UNINDENT# if ( service_name in self . _test_stub_map . _APIProxyStubMap__stub_map ) : #NEWLINE# #INDENT# del self . _test_stub_map . _APIProxyStubMap__stub_map [ service_name ]