]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactor _populate_ports_for_subnets for testability
authorCarl Baldwin <carl.baldwin@hpe.com>
Fri, 16 Oct 2015 16:16:15 +0000 (16:16 +0000)
committerCarl Baldwin <carl.baldwin@hpe.com>
Mon, 19 Oct 2015 22:31:43 +0000 (22:31 +0000)
commitd3f23851c2bd50c418a79b64162ce3027a0a41c3
tree6fe2d9e37332c9275db39237da4fe04d1b115884
parent655a1a214736e91e2f0e6186c9650946883bea41
Refactor _populate_ports_for_subnets for testability

I want to add to this function but I found it very difficult to test
the additions that I was making (because this code isn't well covered
by UTs).  This patch adds some unit testing so that I can change it
more confidently but does not change any functionality.

Change-Id: Id2cf57968f2dfb8bcf18946c922ce2bb51a27766
Partially-implements:  bp/address-scopes
neutron/db/l3_db.py
neutron/tests/unit/db/test_l3_db.py [new file with mode: 0644]