Skip to content

Commit

Permalink
add unit test for is_pro_enabled in lxd_instance module
Browse files Browse the repository at this point in the history
  • Loading branch information
linostar committed Sep 13, 2024
1 parent 4e97938 commit 02aa199
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/lxd/test_lxd_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,3 +1050,15 @@ def test_set_instance_name_invalid(mock_lxc, name):
brief=f"failed to create LXD instance with name {name!r}.",
details="name must contain at least one alphanumeric character",
)


def test_is_pro_enabled(mock_lxc, instance):
instance.is_pro_enabled()

assert mock_lxc.mock_calls == [
mock.call.is_pro_enabled(
instance_name=instance.instance_name,
project=instance.project,
remote=instance.remote,
)
]

0 comments on commit 02aa199

Please sign in to comment.