def test_maybe_transform_passes_through(obj): assert _maybe_transform(obj) == obj
def test_maybe_transform_transforms(): class T(Transform): def transform(self, **kargs): return 'FOOBAR' assert _maybe_transform(T()) == 'FOOBAR'
def test_maybe_transform_passes_through(obj): assert _maybe_transform(obj) == obj
def test_maybe_transform_transforms(): class T(Transform): def transform(self, **kargs): return 'FOOBAR' assert _maybe_transform(T()) == 'FOOBAR'