@@ -772,7 +772,7 @@ def test_history_verbose_with_other_options(base_app):
772
772
options_to_test = ['-r' , '-e' , '-o file' , '-t file' , '-c' , '-x' ]
773
773
for opt in options_to_test :
774
774
out , err = run_cmd (base_app , 'history -v ' + opt )
775
- assert len (out ) >= 4
775
+ assert 4 <= len (out ) <= 5
776
776
assert out [0 ] == '-v cannot be used with any other options'
777
777
assert out [1 ].startswith ('Usage:' )
778
778
assert base_app .last_result is False
@@ -800,7 +800,7 @@ def test_history_script_with_invalid_options(base_app):
800
800
options_to_test = ['-r' , '-e' , '-o file' , '-t file' , '-c' ]
801
801
for opt in options_to_test :
802
802
out , err = run_cmd (base_app , 'history -s ' + opt )
803
- assert len (out ) >= 4
803
+ assert 4 <= len (out ) <= 5
804
804
assert out [0 ] == '-s and -x cannot be used with -c, -r, -e, -o, or -t'
805
805
assert out [1 ].startswith ('Usage:' )
806
806
assert base_app .last_result is False
@@ -820,7 +820,7 @@ def test_history_expanded_with_invalid_options(base_app):
820
820
options_to_test = ['-r' , '-e' , '-o file' , '-t file' , '-c' ]
821
821
for opt in options_to_test :
822
822
out , err = run_cmd (base_app , 'history -x ' + opt )
823
- assert len (out ) >= 4
823
+ assert 4 <= len (out ) <= 5
824
824
assert out [0 ] == '-s and -x cannot be used with -c, -r, -e, -o, or -t'
825
825
assert out [1 ].startswith ('Usage:' )
826
826
assert base_app .last_result is False
0 commit comments