Did I find the right examples for you? yes no

All Samples(9)  |  Call(6)  |  Derive(0)  |  Import(3)

src/t/u/tuskar-HEAD/tuskar/api/controllers/v1/rack.py   tuskar(Download)
        except exception.TuskarException, e:
            response = api.Response(
                Error(faultcode=e.code, faultstring=str(e)),
                status_code=e.code)
            return response
        except exception.TuskarException, e:
            response = api.Response(
                Error(faultcode=e.code, faultstring=str(e)),
                status_code=e.code)
            return response

src/w/s/WSME-0.6/tests/pecantest/test/controllers/ws.py   WSME(Download)
 
        if id == 911:
            return wsme.api.Response(Author(),
                                     status_code=401)
        author = Author()

src/w/s/wsme-HEAD/tests/pecantest/test/controllers/ws.py   wsme(Download)
 
        if id == 911:
            return wsme.api.Response(Author(),
                                     status_code=401)
        author = Author()

src/w/s/WSME-0.6/tests/test_flask.py   WSME(Download)
import unittest
from flask import Flask, json, abort
from wsmeext.flask import signature
from wsme.api import Response
from wsme.types import Base, text
def get_status_response():
    return Response(1, status_code=201)
 
 
class FlaskrTestCase(unittest.TestCase):

src/w/s/wsme-HEAD/tests/test_flask.py   wsme(Download)
import unittest
from flask import Flask, json, abort
from wsmeext.flask import signature
from wsme.api import Response
from wsme.types import Base, text
def get_status_response():
    return Response(1, status_code=201)
 
 
class FlaskrTestCase(unittest.TestCase):

src/t/u/tuskar-0.4.1/tuskar/tests/api/test_renderers.py   tuskar(Download)
from mock import Mock
from mock import patch
from wsme.api import Response
 
from tuskar.api.renderers import JSONRenderer