##// END OF EJS Templates
Merge pull request #8288 from minrk/rm-traitlets...
Merge pull request #8288 from minrk/rm-traitlets Big Split: remove traitlets

File last commit:

r20894:49552ffe
r21203:65eb0919 merge
Show More
base.py
33 lines | 1.0 KiB | text/x-python | PythonLexer
"""
Contains base test class for nbformat
"""
#-----------------------------------------------------------------------------
#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
import unittest
import IPython
#-----------------------------------------------------------------------------
# Classes and functions
#-----------------------------------------------------------------------------
class TestsBase(unittest.TestCase):
"""Base tests class."""
def fopen(self, f, mode=u'r'):
return open(os.path.join(self._get_files_path(), f), mode)
def _get_files_path(self):
return os.path.dirname(__file__)