def test_can_parse_feature_description():
 feature = Feature.from_string(FEATURE2)
 assert_equals(feature.description, 'In order to avoid silly mistakes\nCashiers must be able to calculate a fraction')
 expected_scenario_names = ['Regular numbers']
 got_scenario_names = [s.name for s in feature.scenarios]
 assert_equals(expected_scenario_names, got_scenario_names)
 assert_equals(len(feature.scenarios[0].steps), 4)
 (step1, step2, step3, step4) = feature.scenarios[0].steps
 assert_equals(step1.sentence, '* I have entered 3 into the calculator')
 assert_equals(step2.sentence, '* I have entered 2 into the calculator')
 assert_equals(step3.sentence, '* I press divide')
 assert_equals(step4.sentence, '* the result should be 1.5 on the screen')

def test_can_parse_feature_description ( ) : feature = Feature . from_string ( FEATURE2 ) assert_equals ( feature . description , 'In order to avoid silly mistakes\nCashiers must be able to calculate a fraction' ) expected_scenario_names = [ 'Regular numbers' ] got_scenario_names = [ s . name for s in feature . scenarios ] assert_equals ( expected_scenario_names , got_scenario_names ) assert_equals ( len ( feature . scenarios [ 0 ] . steps ) , 4 ) ( step1 , step2 , step3 , step4 ) = feature . scenarios [ 0 ] . steps assert_equals ( step1 . sentence , '* I have entered 3 into the calculator' ) assert_equals ( step2 . sentence , '* I have entered 2 into the calculator' ) assert_equals ( step3 . sentence , '* I press divide' ) assert_equals ( step4 . sentence , '* the result should be 1.5 on the screen' )
a feature object should have a description .