From bae8063c28ef80270eb4562ae209ae0500559ce7 Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Tue, 12 Oct 2021 14:45:14 -0700 Subject: [PATCH] Add test for fail to make squeak with contact profile (#1578) --- tests/core/test_squeak_core.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/core/test_squeak_core.py b/tests/core/test_squeak_core.py index 6748b922..fe227e3a 100644 --- a/tests/core/test_squeak_core.py +++ b/tests/core/test_squeak_core.py @@ -292,7 +292,9 @@ def test_make_squeak( squeak_content, ): created_squeak, created_secret_key = squeak_core.make_squeak( - signing_profile, squeak_content) + signing_profile, + squeak_content, + ) decrypted_created_content = squeak_core.get_decrypted_content( created_squeak, created_secret_key, @@ -301,6 +303,18 @@ def test_make_squeak( assert decrypted_created_content == squeak_content +def test_make_squeak_with_contact_profile( + squeak_core, + contact_profile, + squeak_content, +): + with pytest.raises(Exception): + created_squeak, created_secret_key = squeak_core.make_squeak( + contact_profile, + squeak_content, + ) + + def test_get_block_header( squeak_core, squeak,