diff --git a/tests/handlers/test_federation.py b/tests/handlers/test_federation.py
index 20416a0142f15ba66ba67f8ee6195dd872c0cb61..a18dfc0e96a312e19d16d2c9bba0363cff991a46 100644
--- a/tests/handlers/test_federation.py
+++ b/tests/handlers/test_federation.py
@@ -69,11 +69,11 @@ class FederationTestCase(unittest.HomeserverTestCase):
                                 "magic.forest": {
                                     "ed25519:3": "fQpGIW1Snz+pwLZu6sTy2aHy/DYWWTspTJRPyNp0PKkymfIsNffysMl6ObMMFdIJhk6g6pwlIqZ54rxo8SLmAg"
                                 }
-                            }
-                        }
-                    }
-                }
-            }
+                            },
+                        },
+                    },
+                },
+            },
         )
 
         failure = self.get_failure(d, AuthError).value