]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Simplify L3 HA scheduler tests
authorAssaf Muller <amuller@redhat.com>
Thu, 1 Oct 2015 15:59:57 +0000 (11:59 -0400)
committerAssaf Muller <amuller@redhat.com>
Thu, 1 Oct 2015 16:01:27 +0000 (12:01 -0400)
commit5e5bdd9b2e4feabf91d4532962b3ffc9d11b4448
tree951d8817171bfd98bdc88d2c4a899dcfce3f1942
parent52236764a3a7c23ec24a86ccb84bc6737e2a4791
Simplify L3 HA scheduler tests

Stop mocking scheduling in the L3 HA scheduler base class,
and mock it explicitly in a couple of tests that need to control
scheduling manually. This allows us to remove a tiny bit of code,
but more importantly make the test and production code a little bit
more similar, and allow the base class to be reused in a more
generic manner.

Change-Id: I95790ba0605bcbf9b87199b99116aee4fca4d604
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py