def pop(options):
mapping = options.constructor({'<STR_LIT:foo>': '<STR_LIT:bar>', '<STR_LIT>': '<STR_LIT>'})<EOL>assert_raises(KeyError, lambda: mapping.pop('<STR_LIT>'))<EOL>assert_equals(mapping.pop('<STR_LIT>', '<STR_LIT>'), '<STR_LIT>')<EOL>assert_equals(mapping, {'<STR_LIT:foo>': '<STR_LIT:bar>', '<STR_LIT>': '<STR_LIT>'})<EOL>assert_equals(mapping.pop('<STR_LIT>'), '<STR_LIT>')<EOL>assert_false('<STR_LIT>' in mapping)<EOL>assert_equals(mapping, {'<STR_LIT:foo>': '<STR_LIT:bar>'})<EOL>assert_equals(mapping.pop('<STR_LIT:foo>', '<STR_LIT>'), '<STR_LIT:bar>')<EOL>assert_false('<STR_LIT:foo>' in mapping)<EOL>assert_equals(mapping, {})<EOL>
Popping from {cls}