Corey,
The simplest way to test this for a particular version would be to put the attached test under oslo_policy/tests/test_1880959.py in a checked out version of oslo.policy and running:
tox -e cover -- oslo_policy.tests.test_1880959.EnforcerTest
It will fail like below without the patch applied and pass if it is.
# ... testtools.matchers._impl.MismatchError: 'role:fakeA' != 'rule:admin' Ran 1 tests in 0.005s (+0.001s) FAILED (id=1, failures=1)
Corey,
The simplest way to test this for a particular version would be to put the attached test under oslo_policy/ tests/test_ 1880959. py in a checked out version of oslo.policy and running:
tox -e cover -- oslo_policy. tests.test_ 1880959. EnforcerTest
It will fail like below without the patch applied and pass if it is.
# ... matchers. _impl.MismatchE rror: 'role:fakeA' != 'rule:admin'
testtools.
Ran 1 tests in 0.005s (+0.001s)
FAILED (id=1, failures=1)