# Class e.c.t.t.TestSignal(unittest.TestCase):

Part of elisa.core.tests.test_signal View In Hierarchy

No class docstring

Line # | Kind | Name | Docs
--- | --- | --- | ---
23 | Method | test_emit | Create a signal, connect a function to it and emit it.
40 | Method | test_emit_with_argument | Create a signal, connect a function with attributes and keywords to it
69 | Method | test_wrong_argument | test to emit the signal with wrong argument types
95 | Method | test_non_callable | test what happens if you try to connect a non callable
102 | Method | test_disconnect | Test that a disconnected callback does not get triggered anymore
120 | Method | test_refcounting | test if the refcounting is not increasing by adding a callback to the

def test_emit(self):
Create a signal, connect a function to it and emit it.

def test_emit_with_argument(self):
Create a signal, connect a function with attributes and keywords to it and emit it.

def test_wrong_argument(self):
test to emit the signal with wrong argument types

def test_non_callable(self):
test what happens if you try to connect a non callable

def test_disconnect(self):
Test that a disconnected callback does not get triggered anymore

def test_refcounting(self):
test if the refcounting is not increasing by adding a callback to the signal