def METHOD_NAME(self):
    post_data = {
        'enable_auto_deactivation': False,
        'inactivity_period': 90,
        'allow_custom_deactivation': True,
    }
    self.emw_settings.refresh_from_db()
    self.assertFalse(self.emw_settings.enable_auto_deactivation)
    self.assertEqual(self.emw_settings.inactivity_period, 90)
    self.assertFalse(self.emw_settings.allow_custom_deactivation)
    emw_settings_form = EnterpriseManageMobileWorkersForm(
        post_data, emw_settings=self.emw_settings
    )
    self.assertTrue(emw_settings_form.is_valid())
    emw_settings_form.update_settings()
    self.emw_settings.refresh_from_db()
    self.assertFalse(self.emw_settings.enable_auto_deactivation)
    self.assertEqual(self.emw_settings.inactivity_period, 90)
    self.assertTrue(self.emw_settings.allow_custom_deactivation)