]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Use a string multiplier instead of 59 repetitions
authorKevin Benton <blak111@gmail.com>
Tue, 18 Nov 2014 15:51:08 +0000 (07:51 -0800)
committerKevin Benton <blak111@gmail.com>
Tue, 18 Nov 2014 15:54:12 +0000 (07:54 -0800)
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

index f8cb462b3e7542b44a7f7b8e4502403a26488a64..510aac039883838c49d0601dc7917240f4c934aa 100644 (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: