Skip to content
test_auth.py 85.2 KiB
Newer Older
Dong Zhuang's avatar
Dong Zhuang committed
        self.assertTrue(user.institutional_id_verified)

        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
# vim: foldmethod=marker