]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
remove incorrect mock assert_called in unit tests
authorMark McClain <mark.mcclain@dreamhost.com>
Fri, 7 Sep 2012 18:52:12 +0000 (14:52 -0400)
committerMark McClain <mark.mcclain@dreamhost.com>
Fri, 7 Sep 2012 19:01:26 +0000 (15:01 -0400)
commit82d38c0ecd915bd7c4f5d4790253e6cc18858753
tree8c21299d74a87b00a32b67c8a3eceec231f93e70
parent363a0579dbc56a597e28a8adea5dc4b2ae6d9d7f
remove incorrect mock assert_called in unit tests

fixes bug 1047569

The unit tests were calling a nonexistent assert_called() on the
mocks.  This patch fixes the problem by using the correct assert for
checking that the mocked method was invoked.

Note: This patch does not fix the error in test_call_driver() because a
separate bug fix revises the test.

Change-Id: Ie62e2e64f314f9ba34761e63cd5d0d6e44c5d094
quantum/tests/unit/test_dhcp_agent.py