Esempio n. 1
0
 def test_string_representation_when_name_is_bytes_and_non_ascii(self):
     exc = self.make_exception(force_bytes('../Äö'))
     assert (
         text_type(exc) ==
         force_text('The file "../Äö" is not within the storage.')
     )
Esempio n. 2
0
 def test_string_representation_when_name_is_bytes_and_non_ascii(self):
     exc = self.make_exception(force_bytes('Äö'))
     assert text_type(exc) == force_text('The file "Äö" was not found.')