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 44880ac was
6964d44,
checked in by Piotr Rozyczko <rozyczko@…>, 8 years ago
|
Minor fixes in fitpage
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | import sys |
---|
2 | import unittest |
---|
3 | |
---|
4 | # set up import paths |
---|
5 | import sas.qtgui.path_prepare |
---|
6 | |
---|
7 | # Tested module |
---|
8 | from sas.qtgui.Perspectives.Fitting.FitPage import * |
---|
9 | |
---|
10 | class FitPageTest(unittest.TestCase): |
---|
11 | '''Test the FitPage methods''' |
---|
12 | |
---|
13 | def setUp(self): |
---|
14 | self.page = FitPage() |
---|
15 | |
---|
16 | def tearDown(self): |
---|
17 | del self.page |
---|
18 | |
---|
19 | def testDefaults(self): |
---|
20 | """ |
---|
21 | Test all the global constants defined in the file. |
---|
22 | """ |
---|
23 | self.assertIsInstance(self.page.fit_options, dict) |
---|
24 | self.assertIsInstance(self.page.smearing_options, dict) |
---|
25 | self.assertEqual(self.page.current_category, "") |
---|
26 | self.assertEqual(self.page.current_model, "") |
---|
27 | self.assertEqual(self.page.current_factor, "") |
---|
28 | self.assertEqual(self.page.page_id, 0) |
---|
29 | self.assertFalse(self.page.data_is_loaded) |
---|
30 | self.assertEqual(self.page.filename, "") |
---|
31 | self.assertIsNone(self.page.data) |
---|
32 | self.assertIsNone(self.page.kernel_module) |
---|
33 | self.assertEqual(self.page.parameters_to_fit, []) |
---|
34 | |
---|
35 | def testSave(self): |
---|
36 | """ |
---|
37 | Test state save |
---|
38 | """ |
---|
39 | pass |
---|
40 | |
---|
41 | def testLoad(self): |
---|
42 | """ |
---|
43 | Test state load |
---|
44 | """ |
---|
45 | pass |
---|
46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.