

def test_X_not_list_should_raise_exception(self):
    X = dict()
    self.assertRaises(TypeError, qtu.bincount, X)
    X = 2
    self.assertRaises(TypeError, qtu.bincount, X)

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