diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | cloudinit/net/tests/test_dhcp.py | 3 | ||||
-rw-r--r-- | tox.ini | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -51,7 +51,7 @@ unittest: clean_pyc nosetests $(noseopts) tests/unittests cloudinit unittest3: clean_pyc - nosetests3 $(noseopts) tests/unittests + nosetests3 $(noseopts) tests/unittests cloudinit ci-deps-ubuntu: @$(PYVER) $(CWD)/tools/read-dependencies --distro ubuntu --test-distro diff --git a/cloudinit/net/tests/test_dhcp.py b/cloudinit/net/tests/test_dhcp.py index 1324c3d0..a38edaec 100644 --- a/cloudinit/net/tests/test_dhcp.py +++ b/cloudinit/net/tests/test_dhcp.py @@ -107,7 +107,8 @@ class TestDHCPDiscoveryClean(CiTestCase): 'os.getuid': 0}, maybe_perform_dhcp_discovery) self.assertEqual({'address': '192.168.2.2'}, retval) - m_dhcp.assert_called_once() + self.assertEqual( + 1, m_dhcp.call_count, 'dhcp_discovery not called once') call = m_dhcp.call_args_list[0] self.assertEqual('/sbin/dhclient', call[0][0]) self.assertEqual('eth9', call[0][1]) @@ -3,7 +3,7 @@ envlist = py27, py3, flake8, xenial, pylint recreate = True [testenv] -commands = python -m nose {posargs:tests/unittests} +commands = python -m nose {posargs:tests/unittests cloudinit} setenv = LC_ALL = en_US.utf-8 |