def test_expectation_function(self, function, *args, **kwargs):
    'Test a generic expectation function\n\n        Args:\n            function (func): The function to be tested. (Must be a valid expectation function.)\n            *args          : Positional arguments to be passed the the function\n            **kwargs       : Keyword arguments to be passed the the function\n\n        Returns:\n            A JSON-serializable expectation result object.\n\n        Notes:\n            This function is a thin layer to allow quick testing of new expectation functions, without having to             define custom classes, etc. To use developed expectations from the command-line tool, you will still need             to define custom classes, etc.\n\n            Check out :ref:`how_to_guides__creating_and_editing_expectations__how_to_create_custom_expectations` for more information.\n        '
    argspec = inspect.getfullargspec(function)[0][1:]
    new_function = self.expectation(argspec)(function)
    return new_function(self, *args, **kwargs)
Test a generic expectation function

Args:
    function (func): The function to be tested. (Must be a valid expectation function.)
    *args          : Positional arguments to be passed the the function
    **kwargs       : Keyword arguments to be passed the the function

Returns:
    A JSON-serializable expectation result object.

Notes:
    This function is a thin layer to allow quick testing of new expectation functions, without having to             define custom classes, etc. To use developed expectations from the command-line tool, you will still need             to define custom classes, etc.

    Check out :ref:`how_to_guides__creating_and_editing_expectations__how_to_create_custom_expectations` for more information.
def test_expectation_function(self, function, *args, **kwargs):
    'Test a generic expectation function\n\n        Args:\n            function (func): The function to be tested. (Must be a valid expectation function.)\n            *args          : Positional arguments to be passed the the function\n            **kwargs       : Keyword arguments to be passed the the function\n\n        Returns:\n            A JSON-serializable expectation result object.\n\n        Notes:\n            This function is a thin layer to allow quick testing of new expectation functions, without having to             define custom classes, etc. To use developed expectations from the command-line tool, you will still need             to define custom classes, etc.\n\n            Check out :ref:`how_to_guides__creating_and_editing_expectations__how_to_create_custom_expectations` for more information.\n        '
    argspec = inspect.getfullargspec(function)[0][1:]
    new_function = self.expectation(argspec)(function)
    return new_function(self, *args, **kwargs)