diff --git a/examples/tdec/simple_tdec_local.py b/examples/tdec/simple_tdec_local.py index b84f31fb5..73a0e8f87 100644 --- a/examples/tdec/simple_tdec_local.py +++ b/examples/tdec/simple_tdec_local.py @@ -1,11 +1,11 @@ from examples.tdec.demo_utilities.demo_sample_conditions import ten_oclock_florida_time -from nucypher.characters.chaotic import BobGonnaBob, NiceGuyEddie +from nucypher.characters.chaotic import NiceGuyEddie, _UpAndDownInTheWater plaintext = b"PEACE AD DAWN" THIS_IS_NOT_A_TRINKET = 55 enrico = NiceGuyEddie(encrypting_key=THIS_IS_NOT_A_TRINKET) -bob = BobGonnaBob(domain="lynx", eth_provider_uri="Nowhere") +bob = _UpAndDownInTheWater(domain="lynx", eth_provider_uri="Nowhere") ANYTHING_CAN_BE_PASSED_AS_RITUAL_DATA = 55 diff --git a/nucypher/characters/chaotic.py b/nucypher/characters/chaotic.py index 7e66cb3ca..756876494 100644 --- a/nucypher/characters/chaotic.py +++ b/nucypher/characters/chaotic.py @@ -164,7 +164,7 @@ class NiceGuyEddie(Enrico, DKGOmniscient): return ciphertext -class BobGonnaBob(Bob, DKGOmniscient): +class _UpAndDownInTheWater(Bob, DKGOmniscient): """ A Bob that, if the proper knowledge lands in his hands, is all too happy to perform decryption without Ursula. @@ -262,3 +262,15 @@ class BobGonnaBob(Bob, DKGOmniscient): pass _ensure_ursula_availability = ensure_ursula_availability_is_of_no_conern_to_anyone + + +class ThisBobAlwaysDecrypts(_UpAndDownInTheWater): + """ + A tool for testing success cases. + """ + + +class ThisBobAlwaysFails(_UpAndDownInTheWater): + """ + A tool for testing interfaces which handle failures from conditions not having been met. + """ diff --git a/tests/integration/characters/test_dkg_and_testnet_bypass.py b/tests/integration/characters/test_dkg_and_testnet_bypass.py new file mode 100644 index 000000000..e69de29bb