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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/m/o/moztrap-HEAD/tests/view/manage/environments/test_views.py   moztrap(Download)
    def setUp(self):
        """Add manage-environments permission to user."""
        super(CategoryManagementViewTest, self).setUp()
        self.add_perm("manage_environments")
 

src/m/o/moztrap-HEAD/tests/view/manage/cases/test_views.py   moztrap(Download)
        self.cv = self.F.CaseVersionFactory.create(
            name=u"Can log in ùê", productversion__product__name="MozTrap")
        self.add_perm("manage_cases")
 
 

src/m/o/moztrap-HEAD/tests/view/users/test_views.py   moztrap(Download)
    def test_post(self):
        """POSTing to create_apikey creates a key and redirects to user-edit."""
        self.add_perm("manage_users")
        res = self.get().forms["create-apikey-form"].submit()
 

src/m/o/moztrap-HEAD/tests/view/test_views.py   moztrap(Download)
    def test_execute_permission_redirects_to_runtests(self):
        """Users with execute permission are directed to run-tests page."""
        self.add_perm("execute")
        res = self.get(status=302)