From 6c9a0ba41536ebbb52cd6075c580b1e0b1336050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= Date: Mon, 5 Dec 2016 15:40:23 +0100 Subject: [PATCH] test_preview: Fix incorrect wrapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old test expected an incorrect wrapping due to the preview function not using unicode properly, so it got the wrong length. Signed-off-by: Johannes Löthberg --- tests/test_preview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_preview.py b/tests/test_preview.py index ed543dcde..ffa52e5dd 100644 --- a/tests/test_preview.py +++ b/tests/test_preview.py @@ -79,7 +79,7 @@ class PreviewTestCase(unittest.TestCase): u" third largest north of the Arctic Circle (following Murmansk and Norilsk)." u" Most of Tromsø, including the city centre, is located on the island of" u" Tromsøya, 350 kilometres (217 mi) north of the Arctic Circle. In 2012," - u" Tromsøya had a population of 36,088. Substantial parts of the…" + u" Tromsøya had a population of 36,088. Substantial parts of the urban…" ) def test_short_summarize(self): @@ -137,7 +137,7 @@ class PreviewTestCase(unittest.TestCase): u" (2015) 72,066, but with an annual influx of students it has over 75,000" u" most of the year. The city centre of Tromsø contains the highest number" u" of old wooden houses in Northern Norway, the oldest house dating from" - u" 1789. The Arctic Cathedral, a modern church…" + u" 1789. The Arctic Cathedral, a modern church from…" )