source: sasview/src/sas/qtgui/Plotting/UnitTesting/PlotUtilitiesTest.py @ 0849aec

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 0849aec was 83eb5208, checked in by Piotr Rozyczko <rozyczko@…>, 8 years ago

Putting files in more ordered fashion

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[87cc73a]1import sys
2import unittest
3from collections import OrderedDict
4
[db5cd8d]5from UnitTesting.TestUtils import WarningTestNotImplemented
[87cc73a]6
7# Tested module
[83eb5208]8import sas.qtgui.Plotting.PlotUtilities as PlotUtilities
[87cc73a]9
10class PlotUtilitiesTest(unittest.TestCase):
11    '''Test the Plot Utilities functions'''
12    def setUp(self):
13        '''Empty'''
14        pass
15
16    def tearDown(self):
17        '''Empty'''
18        pass
19
20    def testDefaults(self):
21        """ default method variables values """
22        self.assertIsInstance(PlotUtilities.SHAPES, OrderedDict)
23        self.assertIsInstance(PlotUtilities.COLORS, OrderedDict)
24
25    def testBuildMatrix(self):
26        """ build matrix for 2d plot from a vector """
[db5cd8d]27        WarningTestNotImplemented()
[87cc73a]28
29    def testGetBins(self):
30        """ test 1d arrays of the index with square binning """
[db5cd8d]31        WarningTestNotImplemented()
[87cc73a]32
33    def testFillupPixels(self):
34        """ test filling z values of the empty cells of 2d image matrix """
[db5cd8d]35        WarningTestNotImplemented()
[87cc73a]36
37    def testRescale(sef):
38        """ test the helper function for step based zooming """
[db5cd8d]39        WarningTestNotImplemented()
[87cc73a]40
41    def testGgetValidColor(self):
42        """ test that the method returns a color understood by MPL """
[db5cd8d]43        WarningTestNotImplemented()
[87cc73a]44
45if __name__ == "__main__":
46    unittest.main()
Note: See TracBrowser for help on using the repository browser.