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