]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove unnecessary MagicMocks in cisco unit tests
authorKevin Benton <blak111@gmail.com>
Fri, 30 May 2014 03:49:48 +0000 (20:49 -0700)
committerKevin Benton <blak111@gmail.com>
Fri, 30 May 2014 03:49:48 +0000 (20:49 -0700)
commit4f96dd72e37ddcdbf756d711537a8b025183b73c
treec0e35bc2a683cbcb8f1f0d6ee9a0960e8d91c242
parente65b06f458f179c50f7b4d4f7ba269d7343ef461
Remove unnecessary MagicMocks in cisco unit tests

Two patches that just return static data never have
assertions made on the MagicMocks generated. This
replaces the magicmocks with lambdas to make the code
easier to read and to get a minor performance gain.

Change-Id: I064c57a66a0f7a8e3080f39cf48bd4b67cf304e3
Partial-Bug: #1316401
neutron/tests/unit/cisco/n1kv/test_n1kv_plugin.py