]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
test_dhcp_agent: Fix no-op tests
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Fri, 28 Nov 2014 05:33:47 +0000 (14:33 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Tue, 2 Dec 2014 03:13:08 +0000 (12:13 +0900)
commitdd39a3eda370543119a5f69fd35d4f6a43f81c3f
tree6088ff7c5a45d8d5cfbab53467cce01c6ac7a23e
parent213aa4f0d0eca9f061178388f95f5c7913f11e71
test_dhcp_agent: Fix no-op tests

Fix some uses of assertCalledOnceWith, which seems like a mistake of
assert_called_once_with.

Also, add a hacking check to prevent the mistake.

Closes-Bug: #1397184
Change-Id: I12d077e2724d52eff65d55aff1130fbbb69671b1
HACKING.rst
neutron/hacking/checks.py
neutron/tests/unit/test_dhcp_agent.py
neutron/tests/unit/test_hacking.py