source: sasview/src/sas/qtgui/Perspectives/Fitting/UnitTesting/FitPageTest.py @ 17e6a2b

ESS_GUIESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_opencl
Last change on this file since 17e6a2b 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 
1import sys
2import unittest
3
4# set up import paths
5import sas.qtgui.path_prepare
6
7# Tested module
8from sas.qtgui.Perspectives.Fitting.FitPage import *
9
10class 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.