@with_setup(prepare_stderr)
def test_feature_without_name():
 filename = syntax_feature_name('feature_without_name')
 runner = Runner(filename)
 assert_raises(LettuceRunnerError, runner.run)
 assert_stderr_lines(('Syntax error at: %s\nFeatures must have a name. e.g: "Feature: This is my name"\n' % filename))

@ with_setup ( prepare_stderr ) def test_feature_without_name ( ) : filename = syntax_feature_name ( 'feature_without_name' ) runner = Runner ( filename ) assert_raises ( LettuceRunnerError , runner . run ) assert_stderr_lines ( ( 'Syntax error at: %s\nFeatures must have a name. e.g: "Feature: This is my name"\n' % filename ) )
syntax checking: fail on features without name .