Use a string multiplier instead of 59 repetitions

A recently added test case added a long string of repeated 1's
which required a #noqa flag. A string multiplier represents the
same thing in a much shorter fashion.

Change-Id: I2f4d5568b3e132781fc51bd2e9b3efd44c549689
This commit is contained in:
Kevin Benton 2014-11-18 07:51:08 -08:00
parent 33664e472a
commit 6eb3f36ff2

View File

@ -281,7 +281,7 @@ class TestAttributes(base.BaseTestCase):
['www.hostname.com', 'www.hostname.com'],
['77.hostname.com'],
['1000.0.0.1'],
['111111111111111111111111111111111111111111111111111111111111'], # noqa
['1' * 59],
None]
for ns in ns_pools: