source: sasview/src/sas/qtgui/Plotting/UnitTesting/PlotUtilitiesTest.py @ 0d72cac

ESS_GUIESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 0d72cac 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
Line 
1import sys
2import unittest
3from collections import OrderedDict
4
5from UnitTesting.TestUtils import WarningTestNotImplemented
6
7# Tested module
8import sas.qtgui.Plotting.PlotUtilities as PlotUtilities
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 """
27        WarningTestNotImplemented()
28
29    def testGetBins(self):
30        """ test 1d arrays of the index with square binning """
31        WarningTestNotImplemented()
32
33    def testFillupPixels(self):
34        """ test filling z values of the empty cells of 2d image matrix """
35        WarningTestNotImplemented()
36
37    def testRescale(sef):
38        """ test the helper function for step based zooming """
39        WarningTestNotImplemented()
40
41    def testGgetValidColor(self):
42        """ test that the method returns a color understood by MPL """
43        WarningTestNotImplemented()
44
45if __name__ == "__main__":
46    unittest.main()
Note: See TracBrowser for help on using the repository browser.