Skip to content

Instantly share code, notes, and snippets.

@whitmo
Created June 15, 2010 17:42
Show Gist options
  • Select an option

  • Save whitmo/439417 to your computer and use it in GitHub Desktop.

Select an option

Save whitmo/439417 to your computer and use it in GitHub Desktop.
# use for howler tests
class FakeBaboonCheckout(object):
def __init__(self):
pass
@dec.wsgify
def __call__(self, request):
import pdb;pdb.set_trace()
seg = request.path_info_pop()
assert seg == 'checkout', ValueError('looking for "checkout", not "%s"')
func = getattr(self, request.method, None)
if func is None:
raise exc.HTTPBadRequest('Checkout does not support %s' %request.method)
return func(request)
def GET(request):
import pdb;pdb.set_trace()
def POST(request):
import pdb;pdb.set_trace()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment