Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from e33_transform_values import transform_values 

2import pytest 

3 

4 

5@pytest.mark.parametrize('f,d,output', [ 

6 (abs, {'a': 1, 'b': -2, 'c': 3}, {'a': 1, 'b': 2, 'c': 3}), 

7 (len, {'first': 'Reuven', 'last': 'Lerner'}, 

8 {'first': 6, 'last': 6}) 

9]) 

10def test_transform_values(f, d, output): 

11 assert transform_values(f, d) == output