changeset 7669:9c7849a1fdfd

tests: fix doctest for summarize_address_range - it is sensitive to linebreaks
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 05 Jan 2019 16:47:08 +0100
parents 04bb8b16852f
children 743b7a20df3f
files kallithea/lib/ipaddr.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/ipaddr.py	Sat Jan 05 14:57:49 2019 +0100
+++ b/kallithea/lib/ipaddr.py	Sat Jan 05 16:47:08 2019 +0100
@@ -206,10 +206,8 @@
     """Summarize a network range given the first and last IP addresses.
 
     Example:
-        >>> summarize_address_range(IPv4Address('1.1.1.0'),
-            IPv4Address('1.1.1.130'))
-        [IPv4Network('1.1.1.0/25'), IPv4Network('1.1.1.128/31'),
-        IPv4Network('1.1.1.130/32')]
+        >>> summarize_address_range(IPv4Address('1.1.1.0'), IPv4Address('1.1.1.130'))
+        [IPv4Network('1.1.1.0/25'), IPv4Network('1.1.1.128/31'), IPv4Network('1.1.1.130/32')]
 
     Args:
         first: the first IPv4Address or IPv6Address in the range.