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

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

src/b/a/backdrop-HEAD/tests/admin/test_file_upload_integration.py   backdrop(Download)
    def _sign_in(self, email):
        self.given_user_is_signed_in_as(
            name="test",
            email=email)
 

src/b/a/backdrop-HEAD/tests/admin/test_signon_integration.py   backdrop(Download)
    def test_upload_page_is_not_found_if_user_has_no_permissions(self):
        self.given_user_is_signed_in_as(email="bob@example.com")
 
        response = self.client.get('/test/upload')
        assert_that(response, has_status(404))
 
    @fake_data_set_exists("test", upload_format="csv")
    @stub_user_retrieve_by_email("bob@example.com", data_sets=["test"])
    def test_upload_page_is_available_to_user_with_permission(self):
        self.given_user_is_signed_in_as(email="bob@example.com")