summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Watkins <daniel.watkins@canonical.com>2015-10-09 14:01:11 +0100
committerDaniel Watkins <daniel.watkins@canonical.com>2015-10-09 14:01:11 +0100
commita9f5d20bc55abc5ff12a5ce1cec1125173f11c7b (patch)
tree4a9325c00d189a7e1f8da2d991af5311f31d37d5 /tests
parent20dc4190e27c7778cfa6c2943961f2ad27e14b48 (diff)
downloadvyos-cloud-init-a9f5d20bc55abc5ff12a5ce1cec1125173f11c7b.tar.gz
vyos-cloud-init-a9f5d20bc55abc5ff12a5ce1cec1125173f11c7b.zip
Convert test helper to staticmethod.
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_datasource/test_azure_helper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/test_datasource/test_azure_helper.py b/tests/unittests/test_datasource/test_azure_helper.py
index 5f906837..1746f6b8 100644
--- a/tests/unittests/test_datasource/test_azure_helper.py
+++ b/tests/unittests/test_datasource/test_azure_helper.py
@@ -90,7 +90,8 @@ class TestFindEndpoint(TestCase):
self.assertRaises(Exception,
azure_helper.WALinuxAgentShim.find_endpoint)
- def _build_lease_content(self, ip_address, use_hex=True):
+ @staticmethod
+ def _build_lease_content(ip_address, use_hex=True):
ip_address_repr = ':'.join(
[hex(int(part)).replace('0x', '')
for part in ip_address.split('.')])