Newer
Older
with mock.patch("accounts.models.User.save") as mock_save:
# no changes
backend.update_user(user, user_attribute, saml_attribute_mapping)
self.assertEqual(mock_save.call_count, 0)