blob: 7828cf3030b9e9d288988373384e93cbc2c98db2 [file] [log] [blame]
Adam Israeldcdf82b2017-08-15 15:26:43 -04001"""
2Tests for generated client code
3
4"""
5
6import mock
7import pytest
8
9
10from juju.client import client
11
12
13
14def 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
20def test_from_connection():
21 connection = mock.Mock()
22 connection.facades = {"Action": 2}
23 action_facade = client.ActionFacade.from_connection(connection)
24
25