- self, user_cfg, mocker - ): - """BSD don't use chpasswd""" - mocker.patch(f"{MODPATH}util.is_BSD", return_value=True) - m_subp = mocker.patch(f"{MODPATH}subp.subp") - cloud = get_cloud(distro="freebsd") - cfg = {"chpasswd": user_cfg} - with mock.patch....