Exemplo n.º 1
0
    def test_init_expectNoException(self):
        dataManager = DataManager("TestDataManager")
        distribution = DistributionWithMeanAndVariance(dataManager)

        self.assertIsInstance(distribution, DistributionWithMeanAndVariance)
        self.assertEqual(distribution.dataManager, dataManager)
Exemplo n.º 2
0
 def DistributionWithMeanAndVarianceTest(self, dataManager):
     DistributionWithMeanAndVariance.__init__(self, dataManager)
Exemplo n.º 3
0
    def test_getExpectationAndSigma_NotImplementedError(self):
        dataManager = DataManager("TestDataManager")
        distribution = DistributionWithMeanAndVariance(dataManager)

        self.assertRaises(NotImplementedError,
                          distribution.getExpectationAndSigma, 1, [])