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@…>, 6 years ago
|
Added Modify Plot Properties functionality. SASVIEW-169
|
-
Property mode set to
100755
|
File size:
1.1 KB
|
Line | |
---|
1 | import sys |
---|
2 | import unittest |
---|
3 | |
---|
4 | from PyQt4 import QtGui |
---|
5 | |
---|
6 | # set up import paths |
---|
7 | import path_prepare |
---|
8 | |
---|
9 | from UnitTesting.TestUtils import WarningNotImplemented |
---|
10 | |
---|
11 | # Local |
---|
12 | from PlotProperties import PlotProperties |
---|
13 | |
---|
14 | app = QtGui.QApplication(sys.argv) |
---|
15 | |
---|
16 | class PlotPropertiesTest(unittest.TestCase): |
---|
17 | '''Test the PlotProperties''' |
---|
18 | def setUp(self): |
---|
19 | '''Create the PlotProperties''' |
---|
20 | |
---|
21 | self.widget = PlotProperties(None) |
---|
22 | |
---|
23 | def tearDown(self): |
---|
24 | '''Destroy the GUI''' |
---|
25 | self.widget.close() |
---|
26 | self.widget = None |
---|
27 | |
---|
28 | def testDefaults(self): |
---|
29 | '''Test the GUI in its default state''' |
---|
30 | self.assertIsInstance(self.widget, QtGui.QDialog) |
---|
31 | self.assertEqual(self.widget.windowTitle(), "Modify Plot Properties") |
---|
32 | |
---|
33 | def testOnColorChange(self): |
---|
34 | '''Test the response to color change event''' |
---|
35 | WarningNotImplemented(sys._getframe().f_code.co_name) |
---|
36 | |
---|
37 | def testOnColorIndexChange(self): |
---|
38 | '''Test the response to color index change event''' |
---|
39 | WarningNotImplemented(sys._getframe().f_code.co_name) |
---|
40 | |
---|
41 | |
---|
42 | if __name__ == "__main__": |
---|
43 | unittest.main() |
---|
Note: See
TracBrowser
for help on using the repository browser.