#NEWLINE# def test_np_format_as_sequence2other( ) : #NEWLINE# #INDENT# vector_sequence_space = VectorSequenceSpace ( dim = 3 ) #NEWLINE# vector_space = VectorSpace ( dim = 3 ) #NEWLINE# data = np . random . uniform ( low = 0.0 , high = 1.0 , size = ( 10 , 3 ) ) #NEWLINE# np . testing . assert_raises ( ValueError , vector_sequence_space . np_format_as , data , vector_space ) #NEWLINE# index_sequence_space = IndexSequenceSpace ( max_labels = 6 , dim = 1 ) #NEWLINE# index_space = IndexSpace ( max_labels = 6 , dim = 1 ) #NEWLINE# data = np . random . randint ( low = 0 , high = 5 , size = ( 10 , 1 ) ) #NEWLINE# np . testing . assert_raises ( ValueError , index_sequence_space . np_format_as , data , index_space )