#NEWLINE# def test_ListOfSubmodPortBundles( setup_sim ) : #NEWLINE# #INDENT# model = ListOfSubmodPortBundles ( ) #NEWLINE# ( model , sim ) = setup_sim ( model ) #NEWLINE# model . in_ [ 0 ] . a . value = 2 #NEWLINE# model . in_ [ 0 ] . b . value = 3 #NEWLINE# model . in_ [ 1 ] . a . value = 4 #NEWLINE# model . in_ [ 1 ] . b . value = 5 #NEWLINE# sim . eval_combinational ( ) #NEWLINE# assert ( model . out [ 0 ] . a == 3 ) #NEWLINE# assert ( model . out [ 0 ] . b == 2 ) #NEWLINE# assert ( model . out [ 1 ] . a == 5 ) #NEWLINE# assert ( model . out [ 1 ] . b == 4 ) #NEWLINE# model . in_ [ 0 ] . a . value = 10 #NEWLINE# model . in_ [ 0 ] . b . value = 4 #NEWLINE# model . in_ [ 1 ] . a . value = 10 #NEWLINE# model . in_ [ 1 ] . b . value = 4 #NEWLINE# sim . eval_combinational ( ) #NEWLINE# assert ( model . out [ 0 ] . a == 4 ) #NEWLINE# assert ( model . out [ 0 ] . b == 10 ) #NEWLINE# assert ( model . out [ 1 ] . a == 4 ) #NEWLINE# assert ( model . out [ 1 ] . b == 10 )