From 631a2518169018c04a4eb3d7a8026f322ec2b677 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Tue, 18 Nov 2014 07:51:08 -0800 Subject: [PATCH] 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 --- neutron/tests/unit/test_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.45.2