def test_environ():
    # See: https://github.com/pycytoolz/cycytoolz/issues/127
    assert keymap(identity, os.environ) == os.environ
    assert valmap(identity, os.environ) == os.environ
    assert itemmap(identity, os.environ) == os.environ
Beispiel #2
0
 def test_itemmap(self):
     D, kw = self.D, self.kw
     assert itemmap(reversed, D({1: 2, 2: 4}), **kw) == D({2: 1, 4: 2})
def test_itemmap():
    assert itemmap(reversed, {1: 2, 2: 4}) == {2: 1, 4: 2}