<s> from lettuce import * <EOL> import purl <EOL> @ step ( "<STR_LIT>" ) <EOL> def have_a_template ( step , template ) : <EOL> world . template = purl . Template ( template ) <EOL> @ step ( "<STR_LIT>" ) <EOL> def expand_template ( step ) : <EOL> world . url = world . template . expand ( ) <EOL> @ step ( "<STR_LIT>" ) <EOL> def check_url ( step ) : <EOL> assert "<STR_LIT>" == world . url . as_string ( ) </s>
