def test_divide_histogram(self): test_histo = {1: 0, 2: 50, 3: 20, 4: 20, INF_LABEL: 0} test_high = {2: 0, 3: 20, 4: 20, INF_LABEL: 0} test_low = {1: 0, 2: 50, INF_LABEL: 0} low, high = AdaptiveTransport.divideHistogram(test_histo) self.assertDictEqual(test_high, high) self.assertDictEqual(test_low, low)
def test_get_histo_from_distr_params(self): h = AdaptiveTransport.getHistoFromDistrParams("weibull", 2) pass