<s> from behave import given , when , then <EOL> @ given ( '<STR_LIT>' ) <EOL> def given_we_have_app ( context ) : <EOL> assert context . client and context . ctx <EOL> @ when ( '<STR_LIT>' ) <EOL> def when_load_home_page ( context , url_path ) : <EOL> context . response = context . client . get ( url_path ) <EOL> assert context . response <EOL> @ then ( '<STR_LIT>' ) <EOL> def then_ensure_word_displayed ( context , expected_phrase ) : <EOL> assert expected_phrase . encode ( '<STR_LIT>' ) in context . response . data </s>
