]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Mock oslo policy HTTPCheck instead of urllib
authorKevin Benton <blak111@gmail.com>
Wed, 7 Oct 2015 02:28:47 +0000 (19:28 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 7 Oct 2015 04:25:57 +0000 (21:25 -0700)
commita0f1d9d6de1560be91d3001c8ac9f880a7a5a7e0
treeea45613f72f40a0e9c78f807d97ddc5f5a64263b
parentfda5df4ff66c52e90988d2accaf8877d4cd55d78
Mock oslo policy HTTPCheck instead of urllib

We were mocking internal behavior of oslo policy by
patching urllib. This will break with the upcoming oslo
release that switches to requests.

This patch changes the mock to the HTTPCheck level and we
can leave implementation details testing up to oslo_policy.

Change-Id: I07957f01307e25f1547197c720eea6e3e7f0ef5a
Closes-Bug: #1503890
neutron/tests/unit/test_policy.py