diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-04-25 12:13:08 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-04-25 12:13:08 -0400 |
commit | a69c9c8a35b61f69f6e959448af8d0619989589f (patch) | |
tree | 6d66840f102c71fb7dbd3eafc044cc5e75531d58 /tests/unittests/test_datasource/test_maas.py | |
parent | 1b7e36a966ce1a0964e93eefa98c9efcbc4c323d (diff) | |
download | vyos-cloud-init-a69c9c8a35b61f69f6e959448af8d0619989589f.tar.gz vyos-cloud-init-a69c9c8a35b61f69f6e959448af8d0619989589f.zip |
fix test
Diffstat (limited to 'tests/unittests/test_datasource/test_maas.py')
-rw-r--r-- | tests/unittests/test_datasource/test_maas.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittests/test_datasource/test_maas.py b/tests/unittests/test_datasource/test_maas.py index 47f8caa4..2007a6df 100644 --- a/tests/unittests/test_datasource/test_maas.py +++ b/tests/unittests/test_datasource/test_maas.py @@ -116,9 +116,10 @@ class TestMAASDataSource(mocker.MockerTestCase): for key in valid_order: url = "%s/%s/%s" % (my_seed, my_ver, key) - mock_request(url, headers=my_headers, timeout=mocker.ANY, + mock_request(url, headers=None, timeout=mocker.ANY, data=mocker.ANY, sec_between=mocker.ANY, - ssl_details=mocker.ANY, retries=mocker.ANY) + ssl_details=mocker.ANY, retries=mocker.ANY, + headers_cb=my_headers_cb) resp = valid.get(key) self.mocker.result(util.StringResponse(resp)) self.mocker.replay() |