Apply suggestion to api/tests/federation/test_serializers.py

6 jobs for 432-federation in 3 minutes and 48 seconds (queued for 2 seconds)