File: test_keyboard.py

package info (click to toggle)
cloud-init 25.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,412 kB
  • sloc: python: 135,894; sh: 3,883; makefile: 141; javascript: 30; xml: 22
file content (17 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pytest

USER_DATA = """\
#cloud-config
keyboard:
    layout: de
    model: pc105
    variant: nodeadkeys
    options: compose:rwin
"""


class TestKeyboard:
    @pytest.mark.user_data(USER_DATA)
    def test_keyboard(self, client):
        lc = client.execute("localectl")
        assert "X11 Layout: de" in lc