@@ -0,0 +1,1325 @@
+%22%22%22Tests for wqflask/base/webqtlCaseData.py%22%22%22%0Aimport unittest%0A%0Afrom wqflask import app  # Required because of utility.tools in webqtlCaseData.py%0Afrom base.webqtlCaseData import webqtlCaseData%0A%0Aclass TestWebqtlCaseData(unittest.TestCase):%0A    %22%22%22Tests for WebqtlCaseData class%22%22%22%0A%0A    def setUp(self):%0A        self.w = webqtlCaseData(name=%22Test%22,%0A                           value=0,%0A                           variance=0.0,%0A                           num_cases=10,%0A                           name2=%22Test2%22)%0A%0A    def test_webqtl_case_data_repr(self):%0A        self.assertEqual(%0A            repr(self.w),%0A            %22%3CwebqtlCaseData%3E value=0.000 variance=0.000 ndata=10 name=Test name2=Test2%22%0A        )%0A%0A    def test_class_outlier(self):%0A        self.assertEqual(self.w.class_outlier, %22%22)%0A%0A    def test_display_value(self):%0A        self.assertEqual(self.w.display_value, %220.000%22)%0A        self.w.value = None%0A        self.assertEqual(self.w.display_value, %22x%22)%0A%0A    def test_display_variance(self):%0A        self.assertEqual(self.w.display_variance, %220.000%22)%0A        self.w.variance = None%0A        self.assertEqual(self.w.display_variance, %22x%22)%0A%0A    def test_display_num_cases(self):%0A        self.assertEqual(self.w.display_num_cases, %2210%22)%0A        self.w.num_cases = None%0A        self.assertEqual(self.w.display_num_cases, %22x%22)%0A

Add unittests for WebqtlCaseData