Source

rx-python / test.py

Full commit
from main import click, time, clicks, keys

def test_dblclick_output():
    """
    >>> click.fire("left")
    >>> time.sleep(.02)
    >>> click.fire("left")
    >>> click.fire("right")
    >>> click.fire("left")
    double left
    """


def test_stream_clicks_and_keys_output():
    """
    >>> clicks.fire("left")
    >>> clicks.fire("left")
    >>> keys.fire("f")
    fake
    fake
    >>> keys.fire("d")
    >>> clicks.fire("right")
    >>> clicks.fire("right")
    >>> time.sleep(.02)
    >>> clicks.fire("left")
    >>> clicks.fire("left")
    double click
    """