コード例 #1
0
def test_window_title_not_in_str_gives_correct_json_representation():
    items = ["window1", "window2", "window3"]
    _filter = WindowTitle.not_in(items)
    expected = NOT_IN.format("tabTitles", *items)
    assert str(_filter) == expected
コード例 #2
0
def test_window_title_not_exists_str_gives_correct_json_representation():
    _filter = WindowTitle.not_exists()
    expected = NOT_EXISTS.format("tabTitles")
    assert str(_filter) == expected
コード例 #3
0
def test_window_title_not_eq_str_gives_correct_json_representation():
    _filter = WindowTitle.not_eq("test_window")
    expected = IS_NOT.format("tabTitles", "test_window")
    assert str(_filter) == expected
コード例 #4
0
ファイル: test_exposure_filter.py プロジェクト: amoravec/py42
def test_window_title_exists_str_gives_correct_json_representation():
    _filter = WindowTitle.exists()
    expected = EXISTS.format("windowTitle")
    assert str(_filter) == expected