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

All Samples(18)  |  Call(15)  |  Derive(0)  |  Import(3)

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
 
 
        self.assertEqual(data, exp)
 
        create_project(self.session)
 
        output = self.app.get('/api/projects/')
        self.assertEqual(output.data, '')
 
        create_project(self.session)
        create_package(self.session)
 
        self.assertEqual(data, exp)
 
        create_project(self.session)
        create_package(self.session)
 
        self.assertEqual(data, exp)
 
        create_project(self.session)
        create_package(self.session)
 

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
 
 
    def test_init_project(self):
        """ Test the __init__ function of Project. """
        create_project(self.session)
        self.assertEqual(3, model.Project.all(self.session, count=True))
 

src/c/n/cnucnuweb-HEAD/tests/test_project.py   cnucnuweb(Download)
 
import cnucnuweb.model as model
from tests import Modeltests, create_project
 
 
    def test_project_init(self):
        """ Test the __init__ function of Project. """
        create_project(self.session)
        self.assertEqual(3, model.Project.all(self.session, count=True))
 
    def test_project_by_name(self):
        """ Test the by_name function of Project. """
        create_project(self.session)
 
        project = model.Project.by_name(self.session, 'geany')
    def test_project_by_id(self):
        """ Test the by_id function of Project. """
        create_project(self.session)
 
        project = model.Project.by_id(self.session, 1)
    def test_project_by_homepage(self):
        """ Test the by_homepage function of Project. """
        create_project(self.session)
 
        project = model.Project.by_homepage(