Last change
on this file since 8d39961 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
|
Rev | Line | |
---|
[87cc73a] | 1 | import sys |
---|
| 2 | import unittest |
---|
| 3 | from collections import OrderedDict |
---|
| 4 | |
---|
[db5cd8d] | 5 | from UnitTesting.TestUtils import WarningTestNotImplemented |
---|
[87cc73a] | 6 | |
---|
| 7 | # Tested module |
---|
[83eb5208] | 8 | import sas.qtgui.Plotting.PlotUtilities as PlotUtilities |
---|
[87cc73a] | 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 """ |
---|
[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 | |
---|
| 45 | if __name__ == "__main__": |
---|
| 46 | unittest.main() |
---|
Note: See
TracBrowser
for help on using the repository browser.