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
def test_window_title_not_exists_str_gives_correct_json_representation(): _filter = WindowTitle.not_exists() expected = NOT_EXISTS.format("tabTitles") assert str(_filter) == expected
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
def test_window_title_exists_str_gives_correct_json_representation(): _filter = WindowTitle.exists() expected = EXISTS.format("windowTitle") assert str(_filter) == expected