##// END OF EJS Templates
Backport PR #4043: don't 'restore_bytes' in from_JSON...
Backport PR #4043: don't 'restore_bytes' in from_JSON It makes no sense to turn base64-encoded unicode strings into base64-encoded byte strings. I can't think why we do this, but we should be very careful about testing before merging this fix. fixes the issue tested in #4036.

File last commit:

r11480:87b152ef
r12466:3ff9c5cf
Show More
base.py
29 lines | 990 B | text/x-python | PythonLexer
"""
Module with tests base for exporters
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
import os
from ...tests.base import TestsBase
#-----------------------------------------------------------------------------
# Class
#-----------------------------------------------------------------------------
class ExportersTestsBase(TestsBase):
"""Contains base test functions for exporters"""
def _get_notebook(self):
return os.path.join(self._get_files_path(), 'notebook2.ipynb')