def test_non_daemon__positive_plain__do_match(dummy_context): from behave_cmdline.steps import _steps as s dummy_context.text = "echo 'SOME OUTPUT'" s.i_run_this_command(dummy_context) dummy_context.table = Table(headings=["mode", "shows", "value"], rows=[["plain", "Y", "SOME OUTPUT"]]) # MUST NOT RAISE s.i_see_in_the_output_of(dummy_context, stream="stdout")
def test_non_daemon__negative_regex__do_match(dummy_context): from behave_cmdline.steps import _steps as s dummy_context.text = "echo 'SOME OUTPUT'" s.i_run_this_command(dummy_context) dummy_context.table = Table(headings=["mode", "shows", "value"], rows=[["regex", "N", "SOME ...PUT"]]) with pytest.raises(AssertionError): s.i_see_in_the_output_of(dummy_context, stream="stdout")
def test_non_daemon__negative_regex__dont_match(dummy_context): from behave_cmdline.steps import _steps as s dummy_context.text = "echo 'SOME OUTPUT'" s.i_run_this_command(dummy_context) dummy_context.table = Table(headings=["mode", "shows", "value"], rows=[["regex", "N", "\*\*OTHER\*\* ...PUT"]]) # MUST NOT RAISE s.i_see_in_the_output_of(dummy_context, stream="stdout")