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

All Samples(2)  |  Call(0)  |  Derive(1)  |  Import(1)

src/m/o/moztrap-HEAD/tests/case/api/base.py   moztrap(Download)
from django.core.urlresolvers import reverse
 
from tests.case.view import WebTest
from django_webtest import DjangoTestApp
from moztrap.model import API_VERSION
class ApiTestCase(WebTest):
    """A test-case for API tests."""
    def get_resource_url(self, url_name, resource_name, params={}):
        """Get a given type of URL for a given resource."""
        kwargs = {