#NEWLINE# def test_get_global_suff_stats_one_cluster( self ) : #NEWLINE# #INDENT# LP = dict ( resp = np . ones ( ( self . Data . nObs , 1 ) ) ) #NEWLINE# SS = self . hmodel . get_global_suff_stats ( self . Data , LP ) #NEWLINE# assert ( np . sum ( SS . N ) == self . Data . nObs ) #NEWLINE# assert np . allclose ( SS . getComp ( 0 ) . xxT , np . dot ( self . Data . X . T , self . Data . X ) )