Update tests for new Unidecode behavior: fix #2799

The library has started putting spaces around the expanded versions of
vulgar fraction characters.
This commit is contained in:
Adrian Sampson 2018-01-30 20:50:43 -05:00
parent 8d0e76383b
commit 9577a511cb

View file

@ -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}')