Exemplo n.º 1
0
try:
    sys.path.append('/homes/ndeklein/python2.6/site-packages')
except:
    pass  # some magic to import from pyMS. dirname(dirname(__file__)) gets the two directories closer to the root.
# this is so that pyMS is added to the pythonpath and you can do import rPlots.py
# if this is made in a package from pyMS import rPlots should also work
dirname = os.path.dirname
sys.path.append(os.path.join(dirname(dirname(__file__))))
import unittest2 as unittest
import config
import rPlotGenerics as rPlots
import warnings
import rpy2.robjects as R
import rFunctions

configHandle = config.ConfigHandle()
config = configHandle.getConfig()
testFolder = os.path.join(os.path.dirname(__file__),
                          config.get('test', 'testfilefolder'))


class testRPlotGenerics(unittest.TestCase):
    """
    A test class for the rPlots module.
    """
    def setUp(self):
        self.plots = rPlots.Plots()

    def test_getParams(self):
        expectedDict = {
            'title': 'changed title',
Exemplo n.º 2
0
 def test_config(self):
     configHandle = config.ConfigHandle()
     self.assertIsInstance(configHandle, config.ConfigHandle)