def test_save_script_rc(self):
     self.unit_private_ip.return_value = '10.0.0.1'
     swift_utils.save_script_rc()
     self._save_script_rc.assert_called_with(**SCRIPT_RC_ENV)
def config_changed():
    if openstack_upgrade_available("swift"):
        do_openstack_upgrade(configs=CONFIGS)
    CONFIGS.write_all()
    save_script_rc()