def METHOD_NAME(self):
    dep_info = self.nodes[0].getdeprecationinfo()
    default_enabled = dep_info['deprecated_features']
    default_disabled = dep_info['disabled_features']
    for function in TESTABLE_FEATURES:
        assert(function in default_enabled or function in default_disabled)
    # RPC methods that are deprecated but enabled by default should succeed
    for function in default_enabled:
        if function in TESTABLE_FEATURES:
            self.verify_enabled(function)
    # RPC methods that are deprecated and not enabled by default should fail
    for function in default_disabled:
        if function in TESTABLE_FEATURES:
            self.verify_disabled(function)
    for start_mode in (self.setup_network_with_args, self.setup_network_with_config):
        # restart with a specific selection of deprecated methods enabled
        self.test_case(start_mode, default_disabled, self.verify_enabled, default_enabled, default_disabled)
        # restart with no deprecated methods enabled
        self.test_case(start_mode, ["none"], self.verify_disabled, default_enabled, default_disabled)