#NEWLINE# def test_BundleChain( setup_sim ) : #NEWLINE# #INDENT# model = BundleChain ( 16 ) #NEWLINE# ( model , sim ) = setup_sim ( model ) #NEWLINE# model . in_ . a . value = 2 #NEWLINE# model . in_ . b . value = 3 #NEWLINE# sim . eval_combinational ( ) #NEWLINE# assert ( model . out . a == 2 ) #NEWLINE# assert ( model . out . b == 3 ) #NEWLINE# model . in_ . a . value = 10 #NEWLINE# model . in_ . b . value = 4 #NEWLINE# sim . eval_combinational ( ) #NEWLINE# assert ( model . out . a == 10 ) #NEWLINE# assert ( model . out . b == 4 )