#NEWLINE# def test_bad_shape2( self ) : #NEWLINE# #INDENT# part1 = Full ( 100 ) #NEWLINE# part2 = Full ( 20 ) #NEWLINE# self . assertEqual ( part1 . shape , ( None , 100 ) ) #NEWLINE# self . assertEqual ( part2 . shape , ( None , 20 ) ) #NEWLINE# part1 . chain ( part2 ) #NEWLINE# self . assertEqual ( part1 . shape , ( None , 100 ) ) #NEWLINE# self . assertEqual ( part2 . shape , ( 100 , 20 ) ) #NEWLINE# part3 = Full ( 100 ) #NEWLINE# part2 . chain ( part3 ) #NEWLINE# part4 = Full ( 90 ) #NEWLINE# with self . assertRaises ( ShapeException ) : #NEWLINE# #INDENT# part4 . chain ( part3 )