def test_can_use_combination_of_all_as_new_columns(self):
a, c, m = column_sizes(self.table)
order = ([random.randrange(a)for _ in self.domain.attributes] +
[random.randrange(a, a + c) for _ in self.domain.class_vars] +
[random.randrange(-m + 1, 0) for _ in self.domain.metas])
random.shuffle(order)
vars = list(self.domain.variables) + list(self.domain.metas[::-1])
After Change
random. shuffle(order)
vars = list(self.domain.variables) + list(self.domain.metas[::-1])
atrs = [vars[order[i]] for i in range(a)]
cv = [vars[order[i]] for i in range(a, a+c)]
metas = [vars[order[i]] for i in range(a+c, a+c+m-1)]
new_domain = self.create_domain(atrs, cv, metas)