def test_scenario_may_own_outlines():
 scenario = Scenario.from_string(OUTLINED_SCENARIO)
 assert_equals(len(scenario.steps), 4)
 expected_sentences = ['Given I have entered <input_1> into the calculator', 'And I have entered <input_2> into the calculator', 'When I press <button>', 'Then the result should be <output> on the screen']
 for (step, expected_sentence) in zip(scenario.steps, expected_sentences):
  assert_equals(type(step), Step)
  assert_equals(step.sentence, expected_sentence)
 assert_equals(scenario.name, 'Add two numbers')
 assert_equals(scenario.outlines, [{'input_1': '20', 'input_2': '30', 'button': 'add', 'output': '50'}, {'input_1': '2', 'input_2': '5', 'button': 'add', 'output': '7'}, {'input_1': '0', 'input_2': '40', 'button': 'add', 'output': '40'}])

def test_scenario_may_own_outlines ( ) : scenario = Scenario . from_string ( OUTLINED_SCENARIO ) assert_equals ( len ( scenario . steps ) , 4 ) expected_sentences = [ 'Given I have entered <input_1> into the calculator' , 'And I have entered <input_2> into the calculator' , 'When I press <button>' , 'Then the result should be <output> on the screen' ] for ( step , expected_sentence ) in zip ( scenario . steps , expected_sentences ) : assert_equals ( type ( step ) , Step ) assert_equals ( step . sentence , expected_sentence ) assert_equals ( scenario . name , 'Add two numbers' ) assert_equals ( scenario . outlines , [ { 'input_1' : '20' , 'input_2' : '30' , 'button' : 'add' , 'output' : '50' } , { 'input_1' : '2' , 'input_2' : '5' , 'button' : 'add' , 'output' : '7' } , { 'input_1' : '0' , 'input_2' : '40' , 'button' : 'add' , 'output' : '40' } ] )
a scenario may own outlines .