BA / Mbed OS BaBoRo1
Embed: (wiki syntax)

« Back to documentation index

UnexpectedResetTest Class Reference

UnexpectedResetTest Class Reference

Inherits mbed_host_tests::BaseHostTest.

Public Member Functions

def setup
def teardown
def unexpected_reset_test

Detailed Description

This test checks that a device's RTC keeps count through a reset

It does this by setting the RTC's time, triggering a reset,
delaying and then reading the RTC's time again to ensure
that the RTC is still counting.
Number of times to reset the device in this test

Definition at line 23 of file unexpected_reset.py.


Member Function Documentation

def setup (   self )
Register callbacks required for the test

Definition at line 37 of file unexpected_reset.py.

def teardown (   self )
No work to do here

Definition at line 55 of file unexpected_reset.py.

def unexpected_reset_test (   self )
Generator for running the reset test

This function calls yield to wait for the next event from
the device. If the device gives the wrong response, then the
generator terminates by returing which raises a StopIteration
exception and fails the test.

Definition at line 59 of file unexpected_reset.py.