def _disable_stub(self, service_name):
    """Disable a service stub.

    Args:
      service_name: The name of the service to disable.

    Raises:
      NotActivatedError: The testbed is not activated.
    """
    if not self._activated:
      raise NotActivatedError('The testbed is not activated.')
    deactivate_callback = self._enabled_stubs.pop(service_name, None)
    if deactivate_callback:
      deactivate_callback(self._test_stub_map.GetStub(service_name))
    if self._test_stub_map._APIProxyStubMap__stub_map in service_name:
      del self._test_stub_map._APIProxyStubMap__stub_map[service_name]
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/testbed/__init__.py/Testbed._disable_stub/swapped operands of `in`