File: test_event.py

package info (click to toggle)
clikit 0.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 984 kB
  • sloc: python: 9,575; sh: 6; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 269 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from clikit.api.event import Event


def test_is_propagation_stopped():
    e = Event()

    assert not e.is_propagation_stopped()


def test_stop_propagation_and_is_propagation_stopped():
    e = Event()

    e.stop_propagation()
    assert e.is_propagation_stopped()