policies: fix engine tests checking wrong key

This commit is contained in:
Jens Langhammer 2021-01-15 11:27:07 +01:00
parent 2e42da11ea
commit a2bddc6d91

View file

@ -125,4 +125,4 @@ class TestPolicyProcess(TestCase):
self.assertEqual(len(events), 1)
event = events.first()
self.assertEqual(event.user["username"], self.user.username)
self.assertIn("division by zero", event.context["error"])
self.assertIn("division by zero", event.context["message"])