summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-12-05 15:40:23 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-12-05 16:33:57 +0100
commit6c9a0ba41536ebbb52cd6075c580b1e0b1336050 (patch)
tree3288a95dbfb19b584defabd879b1f494115a926f /tests
parentMake test_preview use unicode strings (diff)
downloadsynapse-6c9a0ba41536ebbb52cd6075c580b1e0b1336050.tar.xz
test_preview: Fix incorrect wrapping
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 <johannes@kyriasis.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_preview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_preview.py b/tests/test_preview.py
index ed543dcde0..ffa52e5dd4 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…"
         )