#NEWLINE# def test_collect_parameters( self ) : #NEWLINE# #INDENT# params = self . fs2 . parameters #NEWLINE# grads = params . fs2 . gradients #NEWLINE# self . assertEqual ( len ( params ) , 2 ) #NEWLINE# self . assertEqual ( len ( grads ) , 2 ) #NEWLINE# self . _assert_all_is ( params , [ self . fs1 . a . p . data , self . fs2 . b . p . data ] ) #NEWLINE# self . _assert_all_is ( grads , [ self . fs1 . a . p . grad , self . fs2 . b . p . grad ] )