

def test_bins_not_list_should_raise_exception(self):
    X = list(range(10))
    bins = dict()
    self.assertRaises(TypeError, qtu.bincount, X, bins=bins)
    bins = 12
    self.assertRaises(TypeError, qtu.bincount, X, bins=bins)
    bins = numpy.zeros(10)
    self.assertRaises(TypeError, qtu.bincount, X, bins=bins)

dataset/ETHPy150Open probcomp/crosscat/src/tests/unit_tests/test_quality_test_utils.py TestBincount.test_bins_not_list_should_raise_exception/original