def remove_mock_addon(addon_config):
 settings.ADDONS_AVAILABLE_DICT.pop(addon_config.short_name, None)
 try:
  settings.ADDONS_AVAILABLE.remove(addon_config)
 except ValueError:
  pass
 try:
  settings.ADDONS_REQUESTED.remove(addon_config.short_name)
 except ValueError:
  pass

def remove_mock_addon ( addon_config ) : settings . ADDONS_AVAILABLE_DICT . pop ( addon_config . short_name , None ) try : settings . ADDONS_AVAILABLE . remove ( addon_config ) except ValueError : pass try : settings . ADDONS_REQUESTED . remove ( addon_config . short_name ) except ValueError : pass
given an addonconfig instance .