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 87cc73a was
87cc73a,
checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago
|
Added Modify Plot Properties functionality. SASVIEW-169
|
-
Property mode set to
100755
|
File size:
1.4 KB
|
Rev | Line | |
---|
[87cc73a] | 1 | import sys |
---|
| 2 | import unittest |
---|
| 3 | from collections import OrderedDict |
---|
| 4 | |
---|
| 5 | from UnitTesting.TestUtils import WarningNotImplemented |
---|
| 6 | |
---|
| 7 | # Tested module |
---|
| 8 | import PlotUtilities |
---|
| 9 | |
---|
| 10 | class 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 | WarningNotImplemented(sys._getframe().f_code.co_name) |
---|
| 28 | |
---|
| 29 | def testGetBins(self): |
---|
| 30 | """ test 1d arrays of the index with square binning """ |
---|
| 31 | WarningNotImplemented(sys._getframe().f_code.co_name) |
---|
| 32 | |
---|
| 33 | def testFillupPixels(self): |
---|
| 34 | """ test filling z values of the empty cells of 2d image matrix """ |
---|
| 35 | WarningNotImplemented(sys._getframe().f_code.co_name) |
---|
| 36 | |
---|
| 37 | def testRescale(sef): |
---|
| 38 | """ test the helper function for step based zooming """ |
---|
| 39 | WarningNotImplemented(sys._getframe().f_code.co_name) |
---|
| 40 | |
---|
| 41 | def testGgetValidColor(self): |
---|
| 42 | """ test that the method returns a color understood by MPL """ |
---|
| 43 | WarningNotImplemented(sys._getframe().f_code.co_name) |
---|
| 44 | |
---|
| 45 | if __name__ == "__main__": |
---|
| 46 | unittest.main() |
---|
Note: See
TracBrowser
for help on using the repository browser.