@step('I see the result with words count')
def see_result(_step):
 strong_css = '.your_words strong'
 target_text = set([world.css_text(strong_css, i) for i in range(2)])
 assert (set(['text1', 'text2']) == target_text)

@ step ( 'I see the result with words count' ) def see_result ( _step ) : strong_css = '.your_words strong' target_text = set ( [ world . css_text ( strong_css , i ) for i in range ( 2 ) ] ) assert ( set ( [ 'text1' , 'text2' ] ) == target_text )
uppercasing since css capitalizes the headings .