def test_step_definition():
 def dumb():
  pass
 definition = core.StepDefinition('FOO BAR', dumb)
 assert_equals(definition.function, dumb)
 assert_equals(definition.file, core.fs.relpath(__file__).rstrip('c'))
 assert_equals(definition.line, 39)

def test_step_definition ( ) : def dumb ( ) : pass definition = core . StepDefinition ( 'FOO BAR' , dumb ) assert_equals ( definition . function , dumb ) assert_equals ( definition . file , core . fs . relpath ( __file__ ) . rstrip ( 'c' ) ) assert_equals ( definition . line , 39 )
step definition takes a function and a step .