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
1 changed files with 1 additions and 1 deletions

View File

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