@step(u'The "([^"]*)" problem displays a "([^"]*)" answer')
def assert_problem_has_answer(step, problem_type, answer_class):
 assert (answer_class in ['correct', 'incorrect', 'blank'])
 assert (problem_type in PROBLEM_DICT)
 problem_has_answer(world.scenario_dict['COURSE'].number, problem_type, answer_class)

@ step ( u'The "([^"]*)" problem displays a "([^"]*)" answer' ) def assert_problem_has_answer ( step , problem_type , answer_class ) : assert ( answer_class in [ 'correct' , 'incorrect' , 'blank' ] ) assert ( problem_type in PROBLEM_DICT ) problem_has_answer ( world . scenario_dict [ 'COURSE' ] . number , problem_type , answer_class )
assert that the problem is displaying a particular answer .