@@ -39,29 +39,37 @@ def run_example(path):
3939 return proc .returncode
4040
4141class TestExamples (unittest .TestCase ):
42+ """ Run some of examples """
4243 def test_eventthread (self ):
44+ """ Run eventthread.py -- Tests multithreaded event handling """
4345 self .assertEqual (run_example (examples_folder + "eventthread.py" ), 0 )
4446
4547 def test_get_selection (self ):
48+ """ Run get_selection.py -- demonstrate getting selections """
4649 self .assertEqual (run_example (examples_folder + "get_selection.py PRIMARY" ), 0 )
4750 self .assertEqual (run_example (examples_folder + "get_selection.py SECONDARY" ), 0 )
4851 self .assertEqual (run_example (examples_folder + "get_selection.py CLIPBOARD" ), 0 )
4952
5053 def test_profilex (self ):
54+ """ Run profilex.py -- program to generate profiling data """
5155 self .assertEqual (run_example (examples_folder + "profilex.py " + examples_folder + "profilex_output" ), 0 )
5256 subprocess .call (["rm" , examples_folder + "profilex_output" ])
5357
5458 def test_record_demo (self ):
59+ """ Run record_demo.py -- demonstrate record extension """
5560 self .assertEqual (run_example (examples_folder + "record_demo.py" ), 0 )
5661
5762 def test_security (self ):
63+ """ Run security.py -- demonstrate the SECURITY extension """
5864 self .assertEqual (run_example (examples_folder + "security.py --generate" ), 0 )
5965 self .assertEqual (run_example (examples_folder + "security.py --revoke" ), 0 )
6066
6167 def test_xfixes (self ):
68+ """ Run xfixes.py -- demonstrate the XFIXES extension """
6269 self .assertEqual (run_example (examples_folder + "xfixes.py" ), 0 )
6370
6471 def test_xlsatoms (self ):
72+ """ Run xlsatoms.py -- show list atoms on X server """
6573 self .assertEqual (run_example (examples_folder + "xlsatoms.py" ), 0 )
6674
6775
0 commit comments