def test_bad_cctypes_should_raise_exception(self):
		# wrong type (dict)
		self.assertRaises(TypeError, sdg.gen_data,
			dict(),
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=None)

		# empty list
		self.assertRaises(ValueError, sdg.gen_data,
			[],
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=None)

		# invalid cctype (peanut)
		self.assertRaises(ValueError, sdg.gen_data,
			['continuous','continuous','continuous','continuous','peanut'],
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=None)

		# number of columns too low (should be 5)
		self.assertRaises(ValueError, sdg.gen_data,
			['continuous']*4,
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=None)

		# number of columns too high (should be 5)
		self.assertRaises(ValueError, sdg.gen_data,
			['continuous']*6,
			self.n_rows,
			self.cols_to_views_good,
			self.cluster_weights_good,
			self.separation_good,
			seed=0,
			distargs=None)
dataset/ETHPy150Open probcomp/crosscat/src/tests/unit_tests/test_synthetic_data_generator.py/TestSyntheticDataGenerator.test_bad_cctypes_should_raise_exception/original