oslo.policy/oslo_policy/tests
Lance Bragstad 0f31938dd7 Remove erroneous newline in sample generation
The sample generation code for policies has a couple different cases
that make sure deprecated rules have descriptions and reasoning
formatted in the comment section. One of the cases that handles
policies deprecated for removal was injecting an extra newline in the
comment text that threw off the formatting of the sample, leaving
the subsequent policy uncommented, and visually unpleasing.

This commit removes the extra newline in the formatting logic for
deprecated policies and adds a test case for the behavior.

Change-Id: I76338d2fbaccf3b43e0da04732fd9df3c05dfbda
Closes-Bug: 1771442
2018-06-01 21:25:19 +00:00
..
__init__.py exported from oslo-incubator by graduate.sh 2014-12-09 14:40:01 -03:00
base.py Create the temporary files needed for tests 2015-02-17 18:25:54 -05:00
test_checks.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
test_external.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
test_fixtures.py External Policy hook should support SSL 2017-09-27 13:08:26 -04:00
test_generator.py Remove erroneous newline in sample generation 2018-06-01 21:25:19 +00:00
test_opts.py Clean up configuration option management 2015-02-18 12:45:04 -05:00
test_parser.py Change assertTrue(isinstance()) by optimal assert 2016-10-08 09:46:47 +08:00
test_policy.py Only log deprecation warnings when they are overridden 2018-01-05 21:00:16 +00:00
test_sphinxext.py sphinxext: Use field lists in output 2017-07-05 11:05:23 +01:00
test_sphinxpolicygen.py make the sphinxpolicygen extension handle multiple input/output files 2018-04-30 10:11:21 -04:00
token_fixture.py Fix typo of 'available' in token_fixture.py 2015-07-14 16:03:34 +09:00