diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-02-07 12:08:30 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-02-07 12:08:30 -0500 |
commit | a0f882fdd306ef7b3b90c53d5622eb5a6878cb81 (patch) | |
tree | b317d68d593f74e7f4211513e7deba6f0ca61e1f /tests/unittests/test_datasource/test_maas.py | |
parent | 88a369c5324e74a2d1bb8dd0bdf8fdc9a95393c8 (diff) | |
download | vyos-cloud-init-a0f882fdd306ef7b3b90c53d5622eb5a6878cb81.tar.gz vyos-cloud-init-a0f882fdd306ef7b3b90c53d5622eb5a6878cb81.zip |
more test cases for nocloud including one for config seed
Diffstat (limited to 'tests/unittests/test_datasource/test_maas.py')
-rw-r--r-- | tests/unittests/test_datasource/test_maas.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/unittests/test_datasource/test_maas.py b/tests/unittests/test_datasource/test_maas.py index 85e6add0..b56fea82 100644 --- a/tests/unittests/test_datasource/test_maas.py +++ b/tests/unittests/test_datasource/test_maas.py @@ -3,6 +3,7 @@ import os from cloudinit.sources import DataSourceMAAS from cloudinit import url_helper +from tests.unittests.helpers import populate_dir from mocker import MockerTestCase @@ -137,11 +138,4 @@ class TestMAASDataSource(MockerTestCase): pass -def populate_dir(seed_dir, files): - os.mkdir(seed_dir) - for (name, content) in files.iteritems(): - with open(os.path.join(seed_dir, name), "w") as fp: - fp.write(content) - fp.close() - # vi: ts=4 expandtab |