Table Of Contents

Previous topic

Sardana Unit Test Examples

Next topic

test_list

This Page

test_ct

Tests for ct macros

Classes

CtTest

Inheritance diagram of CtTest

class CtTest(methodName='runTest')[source]

Test of ct macro. It verifies that macro ct can be executed. It inherits from RunStopMacroTestCase and from unittest.TestCase. It tests two executions of the ct macro with two different input parameters. Then it does another execution and it tests if the execution can be aborted.

macro_name = 'ct'
test_ct_macro_runs(obj)

Testing ct with macro_runs(macro_params=[‘.3’], wait_timeout=0.5)

test_ct_macro_runs_2(obj)

Testing ct with macro_runs(macro_params=[‘.1’], wait_timeout=0.5)

test_ct_macro_stops(obj)

Testing ct with macro_stops(macro_params=[‘1’], stop_delay=0.1, wait_timeout=2)