Classes | |
class | ThreadTest |
Public Member Functions | |
def | test_basic |
def | test_multiple_unsubscribe_once |
def | test_multiple_unsubscribe_repeating |
def | test_subscription_change |
def | test_unsub_myself |
def | test_unsub_myself_blocking |
def | test_unsub_myself_nonblocking |
def | test_unsubscribe_all |
def | wait_cv |
Definition at line 191 of file graveyard/event.py.
def event::BasicTest::test_basic | ( | self | ) |
Tests basic functionality. Adds a couple of callbacks. Makes sure they are called the right number of times. Checks that parameters are correct, including keyword arguments giving priority to subscribe over trigger.
Definition at line 192 of file graveyard/event.py.
def event::BasicTest::test_multiple_unsubscribe_once | ( | self | ) |
Tests exceptoin on multiple unsubscribe for non-repeating subscribers.
Definition at line 251 of file graveyard/event.py.
def event::BasicTest::test_multiple_unsubscribe_repeating | ( | self | ) |
Tests exceptoin on multiple unsubscribe for repeating subscribers.
Definition at line 244 of file graveyard/event.py.
def event::BasicTest::test_subscription_change | ( | self | ) |
Test that the _subscription_change is called appropriately.
Definition at line 217 of file graveyard/event.py.
def event::BasicTest::test_unsub_myself | ( | self | ) |
Tests that a callback can unsubscribe itself.
Definition at line 232 of file graveyard/event.py.
def event::BasicTest::test_unsub_myself_blocking | ( | self | ) |
Tests that a blocking unsubscribe on myself raises exception.
Definition at line 269 of file graveyard/event.py.
def event::BasicTest::test_unsub_myself_nonblocking | ( | self | ) |
Tests that a nonblocking unsubscribe on myself does not raise.
Definition at line 277 of file graveyard/event.py.
def event::BasicTest::test_unsubscribe_all | ( | self | ) |
Tests basic unsubscribe_all functionality.
Definition at line 258 of file graveyard/event.py.
def event::BasicTest::wait_cv | ( | cv, | ||
l, | ||||
cb, | ||||
trig | ||||
) |
Definition at line 285 of file graveyard/event.py.