def test_defaultrcParams(self): result = directtools.defaultrcParams() self.assertTrue(isinstance(result, dict)) self.assertEqual(len(result), 2) self.assertTrue('legend.numpoints' in result) self.assertEqual(result['legend.numpoints'], 1) self.assertTrue('text.usetex' in result) self.assertEqual(result['text.usetex'], True)
def test_configurematplotlib(self): defaultParams = directtools.defaultrcParams() directtools._configurematplotlib(defaultParams) for key in defaultParams: self.assertTrue(key in matplotlib.rcParams) self.assertEqual(matplotlib.rcParams[key], defaultParams[key])
def test_defaultrcParams(self): result = directtools.defaultrcParams() self.assertEqual(result, {'legend.numpoints': 1})