def test_defined_step_represent_string():
 feature_file = ojoin('runner_features', 'first.feature')
 feature_dir = ojoin('runner_features')
 loader = FeatureLoader(feature_dir)
 world._output = StringIO()
 world._is_colored = False
 loader.find_and_load_step_definitions()
 feature = Feature.from_file(feature_file)
 step = feature.scenarios[0].steps[0]
 step.run(True)
 assert_equals(step.represent_string(step.sentence), '    Given I do nothing                   # tests/functional/output_features/runner_features/dumb_steps.py:6\n')

def test_defined_step_represent_string ( ) : feature_file = ojoin ( 'runner_features' , 'first.feature' ) feature_dir = ojoin ( 'runner_features' ) loader = FeatureLoader ( feature_dir ) world . _output = StringIO ( ) world . _is_colored = False loader . find_and_load_step_definitions ( ) feature = Feature . from_file ( feature_file ) step = feature . scenarios [ 0 ] . steps [ 0 ] step . run ( True ) assert_equals ( step . represent_string ( step . sentence ) , '    Given I do nothing                   # tests/functional/output_features/runner_features/dumb_steps.py:6\n' )
defined step represented without colors .