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

All Samples(13)  |  Call(8)  |  Derive(0)  |  Import(5)

src/p/k/pkgdb2-HEAD/tests/test_package.py   pkgdb2(Download)
 
from pkgdb2.lib import model
from tests import Modeltests, create_package, create_package_acl
 
 
    def test_init_package(self):
        """ Test the __init__ function of Package. """
        create_package(self.session)
        self.assertEqual(3, len(model.Package.all(self.session)))
 
    def test_repr_package(self):
        """ Test the __repr__ function of Package. """
        create_package(self.session)
    def test_to_json(self):
        """ Test the to_json function of Package. """
        create_package(self.session)
        package = model.Package.by_name(self.session, 'guake')
        package = package.to_json()

src/c/n/cnucnuweb-HEAD/tests/test_flask_api.py   cnucnuweb(Download)
import cnucnuweb
import cnucnuweb.model as model
from tests import Modeltests, create_distro, create_project, create_package
 
 
 
        create_project(self.session)
        create_package(self.session)
 
        output = self.app.get('/api/projects/wiki/')
 
        create_project(self.session)
        create_package(self.session)
 
        output = self.app.get('/api/projects/names/')
 
        create_project(self.session)
        create_package(self.session)
 
        data = {'id': 10}
 
        create_project(self.session)
        create_package(self.session)
 
        output = self.app.get('/api/project/10')

src/p/k/pkgdb2-HEAD/tests/test_pkgdblib.py   pkgdb2(Download)
import pkgdb2
import pkgdb2.lib as pkgdblib
from tests import (FakeFasUser, FakeFasUserAdmin, Modeltests,
                   FakeFasGroupValid, FakeFasGroupInvalid,
                   create_collection, create_package,

src/c/n/cnucnuweb-HEAD/tests/test_model.py   cnucnuweb(Download)
 
import cnucnuweb.model as model
from tests import Modeltests, create_distro, create_project, create_package
 
 

src/p/k/pkgdb2-HEAD/tests/test_flask_api_packages.py   pkgdb2(Download)
from pkgdb2 import lib as pkgdblib
from pkgdb2.lib import model
from tests import (Modeltests, FakeFasUser, FakeFasUserAdmin,
                   create_collection, create_package, create_package_acl,
                   create_package_critpath, user_set)