diff --git a/src/tribler-core/tribler_core/components/masterkey/tests/test_masterkey_component.py b/src/tribler-core/tribler_core/components/masterkey/tests/test_masterkey_component.py index 9dfe09d4b0f..85343739738 100644 --- a/src/tribler-core/tribler_core/components/masterkey/tests/test_masterkey_component.py +++ b/src/tribler-core/tribler_core/components/masterkey/tests/test_masterkey_component.py @@ -16,6 +16,13 @@ async def test_masterkey_component(tribler_config): await session.shutdown() +async def test_get_private_key_filename(tribler_config): + private_key_file_name = MasterKeyComponent.get_private_key_filename(tribler_config) + tribler_config.general.testnet = True + testnet_private_key_file_name = MasterKeyComponent.get_private_key_filename(tribler_config) + assert private_key_file_name != testnet_private_key_file_name + + @pytest.mark.asyncio async def test_create(tmp_path): private_key_path = tmp_path / 'private'