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

ESS_GUI
Last change on this file 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.