Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
The API context manager,
The api level means:
    every verb takes in and gives out data in the same ways

src/f/l/flask-snooze-HEAD/tests/test_snooze_sqlalchemyendpoint.py   flask-snooze(Download)
# coding: utf-8
from flask import Flask
from flask.ext.testing import TestCase as FlaskTestCase
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.snooze import Snooze, SqlAlchemyEndpoint
    def create_mgr(self):
        """Helper to create a context"""
        return Snooze(self.app)
 
    def assert_not_4xx(self, response):

src/f/l/flask-snooze-HEAD/tests/test_snooze.py   flask-snooze(Download)
# coding: utf-8
from unittest import TestCase
from flask import Flask
from flask.ext.testing import TestCase as FlaskTestCase
from flask.ext.snooze import Snooze, Endpoint
    def create_mgr(self):
        """Helper to create a context"""
        return Snooze(self.app)
 
    def test_init(self):
    def create_mgr(self):
        """Helper to create a context"""
        return Snooze(self.app)
 
    def assert_not_4xx(self, response):
    def setUp(self):
        self.endpoint = DummyEndpoint(object, None, None)
        self.mgr = Snooze(self.app)
        self.mgr.add(self.endpoint)
        print [(r.rule, r.methods, r.endpoint) for r in self.app.url_map.iter_rules()]