def test_bad_distargs_should_raise_exception(self):
		# wrong type
		self.assertRaises(TypeError, sdg.gen_data,
			self.cctypes_all_contiuous,
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=10)

		# wrong number of entries
		self.assertRaises(ValueError, sdg.gen_data,
			self.cctypes_all_contiuous,
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=[None]*4)

		# wrong entry type
		self.assertRaises(ValueError, sdg.gen_data,
			self.cctypes_all_contiuous,
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=[dict(K=5)]*5)

		# wrong entry type
		self.assertRaises(TypeError, sdg.gen_data,
			self.cctypes_all_multinomial,
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=[None]*5)

		# wrong dict entry for multinomial
		self.assertRaises(KeyError, sdg.gen_data,
			self.cctypes_all_multinomial,
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=[dict(P=12)]*5)
dataset/ETHPy150Open probcomp/crosscat/src/tests/unit_tests/test_synthetic_data_generator.py/TestSyntheticDataGenerator.test_bad_distargs_should_raise_exception/original