def test_functions_as_bound_methods():
 callable_attrs = filter(callable, (getattr(t, a, None) for a in dir(t) if (not (a.startswith('__') or a.endswith('__')))))
 for attr in callable_attrs:
  assert isinstance(attr, MethodType)
  assert ((attr.__self__ is t) or (attr.__self__ is type(t)))

def test_functions_as_bound_methods ( ) : callable_attrs = filter ( callable , ( getattr ( t , a , None ) for a in dir ( t ) if ( not ( a . startswith ( '__' ) or a . endswith ( '__' ) ) ) ) ) for attr in callable_attrs : assert isinstance ( attr , MethodType ) assert ( ( attr . __self__ is t ) or ( attr . __self__ is type ( t ) ) )
test that all functions on a _data object are instance methods of that object .