File: test_get_marks.py

package info (click to toggle)
python-i3ipc 2.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 580 kB
  • sloc: python: 2,968; makefile: 222; sh: 4
file content (20 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# coding=utf-8
from __future__ import unicode_literals

from ipctest import IpcTest


class TestGetMarks(IpcTest):
    def test_get_marks(self, i3):
        self.open_window()
        i3.command('mark a')
        i3.command('mark --add b')
        self.open_window()
        i3.command('mark "(╯°□°)╯︵ ┻━┻"')

        marks = i3.get_marks()
        assert isinstance(marks, list)
        assert len(marks) == 3
        assert 'a' in marks
        assert 'b' in marks
        assert '(╯°□°)╯︵ ┻━┻' in marks