Add encrypted envelope recipient state
This commit is contained in:
@@ -241,6 +241,15 @@ class PostboxRouterTests(unittest.TestCase):
|
||||
self.patch.stop()
|
||||
self.engine.dispose()
|
||||
|
||||
def test_assignment_context_override_must_belong_to_principal(self) -> None:
|
||||
response = self.client.get(
|
||||
"/api/v1/postbox/directory",
|
||||
params={"assignment_context_id": "assignment-not-granted"},
|
||||
)
|
||||
|
||||
self.assertEqual(response.status_code, 403)
|
||||
self.assertIn("not active for this principal", response.text)
|
||||
|
||||
def test_directory_delivery_message_and_receipt_round_trip(self) -> None:
|
||||
directory = self.client.get("/api/v1/postbox/directory")
|
||||
self.assertEqual(200, directory.status_code, directory.text)
|
||||
|
||||
Reference in New Issue
Block a user