]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reduce duplicated code in test_linuxbridge_neutron_agent
authorCedric Brandily <zzelle@gmail.com>
Sat, 7 Nov 2015 21:36:59 +0000 (22:36 +0100)
committerCedric Brandily <zzelle@gmail.com>
Mon, 9 Nov 2015 18:37:03 +0000 (19:37 +0100)
commitc9abc856eaa6dc4358867e13d6bf57f60319374f
tree3ccf92b9935c91df1c322c2f334e5a23533fde77
parent78744ae36784972d03eee5140807a63cd9130644
Reduce duplicated code in test_linuxbridge_neutron_agent

This change defines and uses get_linuxbridge_manager method which
mocks some methods in order to instantiate and returns a
LinuxBridgeManager instance, this method allows to remove some
duplicated code from test_linuxbridge_neutron_agent.

Partial-Bug: #1514548
Change-Id: Ib54a01406938b4937af2af5fca7a71b5758d4482
neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py