Bug 733 fixed
[osm/N2VC.git] / tests / test_ssh_keygen.py
1 """
2 Test N2VC's ssh key generation
3 """
4 import os
5 import pytest
6 from . import base
7 import tempfile
8
9
10 @pytest.mark.asyncio
11 async def test_ssh_keygen(monkeypatch):
12 with tempfile.TemporaryDirectory() as tmpdirname:
13 monkeypatch.setitem(os.environ, "HOME", tmpdirname)
14
15 client = base.get_n2vc()
16
17 public_key = await client.GetPublicKey()
18 assert len(public_key)