def test_syntax_error_for_scenarios_with_no_name():
 expect(Feature.from_string).when.called_with(FEATURE20).to.throw(LettuceSyntaxError, 'In the feature "My scenarios have no name", scenarios must have a name, make sure to declare a scenario like this: `Scenario: name of your scenario`')

def test_syntax_error_for_scenarios_with_no_name ( ) : expect ( Feature . from_string ) . when . called_with ( FEATURE20 ) . to . throw ( LettuceSyntaxError , 'In the feature "My scenarios have no name", scenarios must have a name, make sure to declare a scenario like this: `Scenario: name of your scenario`' )
trying to parse features with unnamed scenarios will cause a syntax error .