summaryrefslogtreecommitdiff
path: root/tests/unittests/test_net.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-05-05 14:57:48 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-05-05 14:57:48 -0700
commita2249942522d140a063acdc007aced991d4f0588 (patch)
tree11c8552a4e112a5d86727a0a87d8afc2d9797bc8 /tests/unittests/test_net.py
parent0780b3abfb14e8994f6097c5d1d22a92e91bc2f5 (diff)
downloadvyos-cloud-init-a2249942522d140a063acdc007aced991d4f0588.tar.gz
vyos-cloud-init-a2249942522d140a063acdc007aced991d4f0588.zip
Work on refactoring (and adding) network conversion tests
Diffstat (limited to 'tests/unittests/test_net.py')
-rw-r--r--tests/unittests/test_net.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/test_net.py b/tests/unittests/test_net.py
index 09235c4d..a0cdc493 100644
--- a/tests/unittests/test_net.py
+++ b/tests/unittests/test_net.py
@@ -121,6 +121,7 @@ class TestNetConfigParsing(TestCase):
self.assertEqual(found, self.simple_cfg)
+
def _gzip_data(data):
with io.BytesIO() as iobuf:
gzfp = gzip.GzipFile(mode="wb", fileobj=iobuf)