Merge commit '19031b24b523c872c1ac367821dc60c950a09755' as 'modules/libjuju'
[osm/N2VC.git] / modules / libjuju / tests / unit / test_client.py
1 """
2 Tests for generated client code
3
4 """
5
6 import mock
7 import pytest
8
9
10 from juju.client import client
11
12
13
14 def test_basics():
15 assert client.CLIENTS
16 for i in range(1,5): # Assert versions 1-4 in client dict
17 assert str(i) in client.CLIENTS
18
19
20 def test_from_connection():
21 connection = mock.Mock()
22 connection.facades = {"Action": 2}
23 action_facade = client.ActionFacade.from_connection(connection)
24
25