diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_gi.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py index 3e6f654..a7337d1 100755 --- a/tests/test_gi.py +++ b/tests/test_gi.py @@ -103,3 +103,30 @@ print(' Layouts:', rec.layouts) print(' Variants:', rec.variants) print(' Options:', rec.options) +print('Changing model to "pc105"...') +original_model = rec.model +rec.set_model("pc105") + +print('Curent configuration:') +rec = Xkl.ConfigRec() +if not rec.get_from_server(engine): + print('Failed to get configuration from server') + sys.exit(1) +print(' Model:', rec.model) +print(' Layouts:', rec.layouts) +print(' Variants:', rec.variants) +print(' Options:', rec.options) + +print('Changing back to original model...') +rec.set_model(original_model) + +print('Curent configuration:') +rec = Xkl.ConfigRec() +if not rec.get_from_server(engine): + print('Failed to get configuration from server') + sys.exit(1) +print(' Model:', rec.model) +print(' Layouts:', rec.layouts) +print(' Variants:', rec.variants) +print(' Options:', rec.options) + |