Skip to content
test_auth.py 85.3 KiB
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)
Dong Zhuang's avatar
Dong Zhuang committed

Dong Zhuang's avatar
Dong Zhuang committed
# vim: foldmethod=marker