Less duplication, more accuracy in format.

This commit is contained in:
Itamar Turner-Trauring 2023-08-17 09:06:32 -04:00
parent 7e70ce8083
commit 152cadf543

View File

@ -671,12 +671,8 @@ storage:
self.assertTrue(initial_service.running) self.assertTrue(initial_service.running)
self.assertIdentical(initial_service.parent, broker) self.assertIdentical(initial_service.parent, broker)
http_announcement = { http_announcement = initial_announcement.copy()
"service-name": "storage", http_announcement[ANONYMOUS_STORAGE_NURLS] = {f"pb://{ones}@nowhere/fake2#v=1"}
"anonymous-storage-FURL": f"pb://{ones}@nowhere/fake2",
"permutation-seed-base32": "bbbbbbbbbbbbbbbbbbbbbbbb",
ANONYMOUS_STORAGE_NURLS: [f"pb://{ones}@nowhere/fake2#v=1"],
}
broker._got_announcement(key_s, http_announcement) broker._got_announcement(key_s, http_announcement)
self.assertFalse(initial_service.running) self.assertFalse(initial_service.running)
self.assertEqual(initial_service.parent, None) self.assertEqual(initial_service.parent, None)