test_GivenDutResetWhenUserKeyNotPushThenPbStatusDisInEqual0
def test_GivenDutResetWhenUserKeyNotPushThenPbStatusDisInEqual0():
generate_rst()
gpio.write("USER_KEY","high")
expected_resp = [False,False,False,False,False,False,False,False]
readed_disIn = modbus.read_discrete_inputs(slave_id,start_address,count)
TEST_ASSERT_EQUAL(expected_resp, readed_disIn)
test_GivenDutResetWhenUserKeyPushThenPbStatusDisInEqual1
def test_GivenDutResetWhenUserKeyPushThenPbStatusDisInEqual1():
generate_rst()
gpio.write("USER_KEY","low")
expected_resp = [False,True,False,False,False,False,False,False]
readed_disIn = modbus.read_discrete_inputs(slave_id,start_address,count)
gpio.write("USER_KEY","high")
TEST_ASSERT_EQUAL(expected_resp, readed_disIn)