diff --git a/unittests/test_error_handling.py b/unittests/test_error_handling.py
index 7a6b415252d6719b603951c158fbe519c6ba018b..9962a0df48fa8ba1411d153a77ab975d3401363f 100644
--- a/unittests/test_error_handling.py
+++ b/unittests/test_error_handling.py
@@ -75,7 +75,7 @@ def test_entity_does_not_exist_error():
         raise_errors(ent)
     # There should be exactly one child
     assert len(e.errors) == 1
-    err = e.errors[0]
+    err=e.errors[0]
     # check type and entity of only child
     assert isinstance(err, EntityDoesNotExistError)
     assert err.entity.name == ent.name
@@ -98,9 +98,9 @@ def test_authorization_exception():
 
 def test_unqualified_parents_error():
     """Code 116; parent does not exist"""
-    code = 116
-    entity_does_not_exist_code = 101
-    parent = _add_error_message_to_entity(
+    code=116
+    entity_does_not_exist_code=101
+    parent=_add_error_message_to_entity(
         db.RecordType(name="TestParent"),
         entity_does_not_exist_code)
     rec = _add_error_message_to_entity(db.Record(name="TestRecord"),