tests/cli_tests/test_on_error.py
raw| 1 | def test_wrong_stream_type(clean_redis, cli): |
| 2 | clean_redis.lpush("mylist", "foo") |
| 3 | cli.sendline("xrange mylist 0 -1") |
| 4 | cli.expect("error") |
| 5 | cli.expect("Invalid stream ID specified as stream command argument") |
| 6 | |
| 7 | |
| 8 | def test_wrong_stream_type_in_raw_mode(clean_redis, raw_cli): |
| 9 | clean_redis.lpush("mylist", "foo") |
| 10 | raw_cli.sendline("xrange mylist 0 -1") |
| 11 | raw_cli.expect("ERROR") |
| 12 | raw_cli.expect("Invalid stream ID specified as stream command argument") |