Пример #1
0
    def test_unicode_fails_with_wrong_configured_basepath(self):
        with override_settings(TMP_PATH=unicode(settings.TMP_PATH)):
            file_viewer = FileViewer(self.file)
            file_viewer.src = unicode_filenames

            with pytest.raises(UnicodeDecodeError):
                file_viewer.extract()
Пример #2
0
    def test_unicode_fails_with_wrong_configured_basepath(self):
        file_viewer = FileViewer(self.file)
        file_viewer.src = unicode_filenames

        with pytest.raises(UnicodeDecodeError):
            file_viewer.extract()
Пример #3
0
    def test_unicode_fails_with_wrong_configured_basepath(self):
        file_viewer = FileViewer(self.file)
        file_viewer.src = unicode_filenames

        with pytest.raises(UnicodeDecodeError):
            file_viewer.extract()