<s> """<STR_LIT>""" <EOL> import unittest <EOL> class MapKeysTest ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_it ( self ) : <EOL> from acme . util import map_keys <EOL> self . assertEqual ( { '<STR_LIT:a>' : '<STR_LIT:b>' , '<STR_LIT:c>' : '<STR_LIT:d>' } , <EOL> map_keys ( { '<STR_LIT:a>' : '<STR_LIT:b>' , '<STR_LIT:c>' : '<STR_LIT:d>' } , lambda key : key ) ) <EOL> self . assertEqual ( { <NUM_LIT:2> : <NUM_LIT:2> , <NUM_LIT:4> : <NUM_LIT:4> } , map_keys ( { <NUM_LIT:1> : <NUM_LIT:2> , <NUM_LIT:3> : <NUM_LIT:4> } , lambda x : x + <NUM_LIT:1> ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
