from rally_follow import video_cmd def test_video_cmd_without_preview_has_no_kmssink(): cmd = video_cmd("/dev/rally", 1920, 1080, 30, 8, preview=None) s = " ".join(cmd) assert "kmssink" not in s assert "tee" not in cmd assert "fdsink" in cmd assert "fd=8" in cmd assert "device=/dev/rally" in s