def update(options):
mapping = options.constructor({'<STR_LIT:foo>': '<STR_LIT:bar>', '<STR_LIT>': '<STR_LIT>'})<EOL>mapping.update(alpha='<STR_LIT>', lorem='<STR_LIT>')<EOL>assert_equals(mapping, {'<STR_LIT:foo>': '<STR_LIT:bar>', '<STR_LIT>': '<STR_LIT>', '<STR_LIT>': '<STR_LIT>'})<EOL>mapping.update({'<STR_LIT:foo>': '<STR_LIT>', <NUM_LIT:1>: '<STR_LIT>'})<EOL>assert_equals(<EOL>mapping,<EOL>{'<STR_LIT:foo>': '<STR_LIT>', '<STR_LIT>': '<STR_LIT>', '<STR_LIT>': '<STR_LIT>', <NUM_LIT:1>: '<STR_LIT>'}<EOL>)<EOL>assert_equals(mapping.foo, '<STR_LIT>')<EOL>assert_equals(mapping.alpha, '<STR_LIT>')<EOL>assert_equals(mapping.lorem, '<STR_LIT>')<EOL>assert_equals(mapping(<NUM_LIT:1>), '<STR_LIT>')<EOL>
update a {cls}