def test_init_pytables_with_labels():
 rng = np.random.RandomState([34, 22, 89])
 X = rng.randn(2, 3)
 y = rng.randint(low=0, high=5, size=(2,))
 ds = DenseDesignMatrixPyTables(X=X, y=y, X_labels=len(np.unique(X).flat), y_labels=(np.max(y) + 1))

def test_init_pytables_with_labels ( ) : rng = np . random . RandomState ( [ 34 , 22 , 89 ] ) X = rng . randn ( 2 , 3 ) y = rng . randint ( low = 0 , high = 5 , size = ( 2 , ) ) ds = DenseDesignMatrixPyTables ( X = X , y = y , X_labels = len ( np . unique ( X ) . flat ) , y_labels = ( np . max ( y ) + 1 ) )
test whether densedesignmatrixpytables can be constructed with x_labels and y_labels .