def test_scenarios_with_extra_whitespace():
 feature = Feature.from_string(FEATURE14)
 assert_equals(type(feature.scenarios), list)
 assert_equals(len(feature.scenarios), 1, 'It should have 1 scenario')
 assert_equals(feature.name, 'Extra whitespace feature')
 scenario = feature.scenarios[0]
 assert_equals(type(scenario), Scenario)
 assert_equals(scenario.name, 'Extra whitespace scenario')

def test_scenarios_with_extra_whitespace ( ) : feature = Feature . from_string ( FEATURE14 ) assert_equals ( type ( feature . scenarios ) , list ) assert_equals ( len ( feature . scenarios ) , 1 , 'It should have 1 scenario' ) assert_equals ( feature . name , 'Extra whitespace feature' ) scenario = feature . scenarios [ 0 ] assert_equals ( type ( scenario ) , Scenario ) assert_equals ( scenario . name , 'Extra whitespace scenario' )
make sure that extra leading whitespace is ignored .