From: Kevin Benton Date: Tue, 18 Nov 2014 15:51:08 +0000 (-0800) Subject: Use a string multiplier instead of 59 repetitions X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=631a2518169018c04a4eb3d7a8026f322ec2b677;p=openstack-build%2Fneutron-build.git 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 --- diff --git a/neutron/tests/unit/test_attributes.py b/neutron/tests/unit/test_attributes.py index f8cb462b3..510aac039 100644 --- a/neutron/tests/unit/test_attributes.py +++ b/neutron/tests/unit/test_attributes.py @@ -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: