@@ -0,0 +1,1479 @@
+# Test methods with long descriptive names can omit docstrings%0A# pylint: disable=missing-docstring%0Afrom unittest import TestCase%0A%0Afrom Orange.data import Table%0Afrom Orange.statistics.basic_stats import DomainBasicStats, BasicStats%0A%0A%0Aclass TestDomainBasicStats(TestCase):%0A    def setUp(self):%0A        self.zoo = Table(%22zoo%22)%0A%0A    def test_domain_basic_stats(self):%0A        domain = self.zoo.domain%0A        attr_stats = %5BBasicStats(self.zoo, a) for a in domain.attributes%5D%0A        class_var_stats = %5BBasicStats(self.zoo, a) for a in domain.class_vars%5D%0A        meta_stats = %5BBasicStats(self.zoo, a) for a in domain.metas%5D%0A%0A        domain_stats = DomainBasicStats(self.zoo)%0A        self.assertStatsEqual(domain_stats.stats,%0A                              attr_stats + class_var_stats)%0A%0A        domain_stats = DomainBasicStats(self.zoo, include_metas=True)%0A        self.assertStatsEqual(domain_stats.stats,%0A                              attr_stats + class_var_stats + meta_stats)%0A%0A    def assertStatsEqual(self, stats1, stats2):%0A        self.assertEqual(len(stats1), len(stats2))%0A        for stat1, stat2 in zip(stats1, stats2):%0A            self.assertAlmostEqual(stat1.min, stat2.min)%0A            self.assertAlmostEqual(stat1.max, stat2.max)%0A            self.assertAlmostEqual(stat1.mean, stat2.mean)%0A            self.assertAlmostEqual(stat1.var, stat2.var)%0A            self.assertAlmostEqual(stat1.nans, stat2.nans)%0A            self.assertAlmostEqual(stat1.non_nans, stat2.non_nans)%0A

Improve basic stats coverage