def test_functions_as_bound_methods():
    # Filter out __class__ and friends that are special, these can be
    # callables without being instance methods.
    callable_attrs = filter(
        callable,
        (getattr(t, a, None) for a in dir(t) if not a.startswith('__')),
    )
    for attr in callable_attrs:
        assert isinstance(attr, MethodType)
        # Make sure this is bound to the correct object.
        assert attr.__self__ is t
Test that all functions on a _Data object are instance methods
dataset/ETHPy150Open blaze/blaze/blaze/tests/test_interactive.py/test_functions_as_bound_methods