diff --git a/allauth_ens/tests.py b/allauth_ens/tests.py index f8bf5c0..002a8f3 100644 --- a/allauth_ens/tests.py +++ b/allauth_ens/tests.py @@ -375,4 +375,4 @@ class LongTermClipperTests(CASTestCase): for uid in uids: with self.assertRaises(ValueError) as cm: get_ldap_infos(uid) - self.assertIn(uid, cm.exception.message) + self.assertIn(uid, str(cm.exception))