Example #1
0
 def test_post_redirects(self):
     response = self.client.post(self.copy_url,
                                 data={
                                     'title': 'new copy',
                                     'slug': 'new-slug'
                                 })
     url_helper = FormURLHelper(model=Form)
     self.assertRedirects(response, url_helper.index_url)
 def test_post_redirects(self):
     response = self.client.post(self.advanced_url,
                                 data={
                                     "name": "foo",
                                     "number": 1
                                 })
     url_helper = FormURLHelper(model=Form)
     self.assertRedirects(response, url_helper.index_url)
Example #3
0
 def test_post_redirects(self):
     response = self.client.post(self.copy_url,
                                 data={
                                     "title": "new copy",
                                     "slug": "new-slug"
                                 })
     url_helper = FormURLHelper(model=Form)
     self.assertRedirects(response, url_helper.index_url)
 def url_helper(self):
     return FormURLHelper(model=Form)
Example #5
0
 def url_helper(self):
     return FormURLHelper(model=self.object.specific_class)