def do_request(self, *pokemon): """Quick accessor to hit the compare gadget.""" return self.app.get(url(controller='dex_gadgets', action='compare_pokemon', pokemon=pokemon))
def do_request(self, *pokemon): """Quick accessor to hit the compare gadget.""" return self.app.get( url(controller='dex_gadgets', action='compare_pokemon', pokemon=pokemon))
def do_search(self, **criteria): u"""Small wrapper to run a Pokémon search for the given criteria.""" return self.app.get(url(controller='dex_search', action='pokemon_search', **criteria))
def do_search(self, **criteria): u"""Small wrapper to run a move search for the given criteria.""" return self.app.get(url(controller='dex_search', action='move_search', **criteria))
def hit_page(self, urlargs): urlargs.setdefault('controller', 'dex') response = self.app.get(url(**urlargs)) return response