#NEWLINE# def test_override_states( self ) : #NEWLINE# #INDENT# expected_keys = [ ( 'y' , 'x' ) , ( 'y' , 'z' ) , ( 'z' , 'x' ) , ( 'z' , 'z' ) ] #NEWLINE# params = self . p . root . ci1 . params #NEWLINE# unknowns = self . p . root . ci1 . unknowns #NEWLINE# resids = self . p . root . ci1 . resids #NEWLINE# jac = self . p . root . ci1 . fd_jacobian ( params , unknowns , resids ) #NEWLINE# self . assertEqual ( set ( expected_keys ) , set ( jac . keys ( ) ) ) #NEWLINE# expected_keys = [ ( 'y' , 'x' ) , ( 'z' , 'x' ) ] #NEWLINE# params = self . p . root . ci1 . params #NEWLINE# unknowns = self . p . root . ci1 . unknowns #NEWLINE# resids = self . p . root . ci1 . resids #NEWLINE# jac = self . p . root . ci1 . fd_jacobian ( params , unknowns , jac , fd_states = [ ] ) #NEWLINE# self . assertEqual ( set ( expected_keys ) , set ( jac . keys ( ) ) )