예제 #1
0
async def test_masterkey_component(tribler_config):
    session = Session(tribler_config, [KeyComponent()])
    with session:
        comp = KeyComponent.instance()
        await session.start()

        assert comp.primary_key

        await session.shutdown()
예제 #2
0
async def test_masterkey_component(tribler_config):
    async with Session(tribler_config, [KeyComponent()]).start():
        comp = KeyComponent.instance()
        assert comp.primary_key