@with_setup(prepare_stderr)
def test_feature_missing_scenarios():
 filename = syntax_feature_name('feature_missing_scenarios')
 runner = Runner(filename)
 assert_raises(LettuceRunnerError, runner.run)
 assert_stderr_lines((u'Syntax error at: %s\nFeatures must have scenarios.\nPlease refer to the documentation available at http://lettuce.it for more information.\n' % filename))

@ with_setup ( prepare_stderr ) def test_feature_missing_scenarios ( ) : filename = syntax_feature_name ( 'feature_missing_scenarios' ) runner = Runner ( filename ) assert_raises ( LettuceRunnerError , runner . run ) assert_stderr_lines ( ( u'Syntax error at: %s\nFeatures must have scenarios.\nPlease refer to the documentation available at http://lettuce.it for more information.\n' % filename ) )
syntax checking: fail on features missing scenarios .