Beispiel #1
0
 def test_can_return_ssh_pubkey(self, mock_open):
     host = Host()
     assert host.get_ssh_pubkey()
     assert mock_open.call_count == 1
Beispiel #2
0
 def test_can_return_ssh_pubkey(self, mock_open):
     lxd_container = unittest.mock.Mock()
     host = Host(lxd_container)
     assert host.get_ssh_pubkey()
     assert mock_open.call_count == 1