From 9577a511cb055f143deb2ad8f2b801595b5f5c3f Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 30 Jan 2018 20:50:43 -0500 Subject: [PATCH] Update tests for new Unidecode behavior: fix #2799 The library has started putting spaces around the expanded versions of vulgar fraction characters. --- test/test_library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_library.py b/test/test_library.py index aaab6fe03..ea566965e 100644 --- a/test/test_library.py +++ b/test/test_library.py @@ -427,7 +427,7 @@ class DestinationTest(_common.TestCase): self.lib.directory = b'lib' self.lib.path_formats = [(u'default', u'$title')] self.i.title = u'ab\xa2\xbdd' - self.assertEqual(self.i.destination(), np('lib/abC_1_2d')) + self.assertEqual(self.i.destination(), np('lib/abC_ 1_2 d')) def test_destination_with_replacements(self): self.lib.directory = b'base' @@ -591,7 +591,7 @@ class DestinationFunctionTest(_common.TestCase, PathFormattingMixin): def test_asciify_variable(self): self._setf(u'%asciify{ab\xa2\xbdd}') - self._assert_dest(b'/base/abC_1_2d') + self._assert_dest(b'/base/abC_ 1_2 d') def test_left_variable(self): self._setf(u'%left{$title, 3}')