def test_post_unpublished_opening_form(self): opening = OpeningWithQuestionFactory(company=self.user.company, published_date=None) url = reverse('public:apply', args=(opening.id,)) career_site_post(self.app, url, self.user.company.subdomain, status=404)
def test_post_inexisting_opening_form(self): url = reverse('public:apply', args=(42,)) career_site_post(self.app, url, self.user.company.subdomain, status=404)