Did I find the right examples for you? yes no

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

src/i/o/ionyweb-0.3/ionyweb/administration/tests/actions.py   ionyweb(Download)
                                               valid_url_action])
        response = self.client.get(url)
        self.assertContains(response, 'msg', status_code=400)
        response = self.client.put(url)
        self.assertContains(response, 'msg', status_code=400)
        response = self.client.post(url)
        self.assertContains(response, 'msg', status_code=400)
        response = self.client.delete(url)
        self.assertContains(response, 'msg', status_code=400)
                                               valid_url_action])
        response = self.client.get(url)
        self.assertContains(response, 'msg', status_code=404)
        response = self.client.put(url)
        self.assertContains(response, 'msg', status_code=404)

src/i/o/ionyweb-HEAD/ionyweb/administration/tests/actions.py   ionyweb(Download)
                                               valid_url_action])
        response = self.client.get(url)
        self.assertContains(response, 'msg', status_code=400)
        response = self.client.put(url)
        self.assertContains(response, 'msg', status_code=400)
        response = self.client.post(url)
        self.assertContains(response, 'msg', status_code=400)
        response = self.client.delete(url)
        self.assertContains(response, 'msg', status_code=400)
                                               valid_url_action])
        response = self.client.get(url)
        self.assertContains(response, 'msg', status_code=404)
        response = self.client.put(url)
        self.assertContains(response, 'msg', status_code=404)

src/i/o/ionyweb-0.3/ionyweb/administration/tests/plugins.py   ionyweb(Download)
        self.client.login(username='admin', password='admin')
        response = self.client.get(url)
        self.assertContains(response, 'plugins_listform')
 
    def test_get_plugin_pk_view(self):
        url = test_reverse('wa-plugin', args=[arg])
        response = self.client.get(url)
        self.assertContains(response, 'html')
 
        # Try to edit an existing plugin of another page
        arg = '%s%d' % (settings.HTML_ID_PLUGIN, 16)
        url = test_reverse('wa-plugin', args=[arg])
        response = self.client.get(url)
        self.assertContains(response, 'html')
        # Some fields are missing
        response = self.client.get(url)
        self.assertContains(response, 'msg', status_code = 400)
 
        response = self.client.get(url, {'placeholder_id': ''})
        self.assertContains(response, 'msg', status_code = 400)

src/i/o/ionyweb-HEAD/ionyweb/administration/tests/plugins.py   ionyweb(Download)
        self.client.login(username='admin', password='admin')
        response = self.client.get(url)
        self.assertContains(response, 'plugins_listform')
 
    def test_get_plugin_pk_view(self):
        url = test_reverse('wa-plugin', args=[arg])
        response = self.client.get(url)
        self.assertContains(response, 'html')
 
        # Try to edit an existing plugin of another page
        arg = '%s%d' % (settings.HTML_ID_PLUGIN, 16)
        url = test_reverse('wa-plugin', args=[arg])
        response = self.client.get(url)
        self.assertContains(response, 'html')
        # Some fields are missing
        response = self.client.get(url)
        self.assertContains(response, 'msg', status_code = 400)
 
        response = self.client.get(url, {'placeholder_id': ''})
        self.assertContains(response, 'msg', status_code = 400)

src/i/o/ionyweb-0.3/ionyweb/plugin_app/plugin_video/tests.py   ionyweb(Download)
        response = self.client.get(url, {'placeholder_id': content_placeholder_1,
                                         'plugin_type': plugin_id})
        self.assertContains(response, 'plugin_form_form', status_code = 200)
 
    def test_youtube_video(self):
                                         'plugin_type': plugin_id,
                                         'url': 'http://www.youtube.com/watch?v=n7vYo6l06lo'})
        self.assertContains(response, 'msg')
 
        # Display the youtube video
        self.client.logout()
        url = '/'
 
        response = self.client.get(url)
        self.assertContains(response, 'n7vYo6l06lo')
                                         'plugin_type': plugin_id,
                                         'url': 'http://youtu.be/n7vYo6l06lo'})
        self.assertContains(response, 'msg')
 
 
                                         'plugin_type': plugin_id,
                                         'url': 'http://www.dailymotion.com/video/xogb25_il-s-evanouit-quand-on-le-chatouille_news'})
        self.assertContains(response, 'msg')
 
        # Display the dailymotion video

src/i/o/ionyweb-0.3/ionyweb/administration/tests/login.py   ionyweb(Download)
        # Bad login
        response = self.client.post(url, {'email': 'badlogin', 'password': 'admin'})
        self.assertContains(response, 'msg', status_code=400)
 
        # Bad password
        response = self.client.post(url, {'email': 'contact@ionyse.com', 'password': 'badpassword'})
        self.assertContains(response, 'msg', status_code=400)
        user.save()
        response = self.client.post(url, {'email': 'foo@bar.com', 'password': 'foobar'})
        self.assertContains(response, 'msg', status_code=400)
 
        # Connection OK
        response = self.client.post(url, {'email': 'contact@ionyse.com', 'password': 'admin'})
        self.assertContains(response, 'msg')

src/i/o/ionyweb-HEAD/ionyweb/plugin_app/plugin_video/tests.py   ionyweb(Download)
        response = self.client.get(url, {'placeholder_id': content_placeholder_1,
                                         'plugin_type': plugin_id})
        self.assertContains(response, 'plugin_form_form', status_code = 200)
 
    def test_youtube_video(self):
                                         'plugin_type': plugin_id,
                                         'url': 'http://www.youtube.com/watch?v=n7vYo6l06lo'})
        self.assertContains(response, 'msg')
 
        # Display the youtube video
        self.client.logout()
        url = '/'
 
        response = self.client.get(url)
        self.assertContains(response, 'n7vYo6l06lo')
                                         'plugin_type': plugin_id,
                                         'url': 'http://youtu.be/n7vYo6l06lo'})
        self.assertContains(response, 'msg')
 
 
                                         'plugin_type': plugin_id,
                                         'url': 'http://www.dailymotion.com/video/xogb25_il-s-evanouit-quand-on-le-chatouille_news'})
        self.assertContains(response, 'msg')
 
        # Display the dailymotion video

src/i/o/ionyweb-HEAD/ionyweb/administration/tests/login.py   ionyweb(Download)
        # Bad login
        response = self.client.post(url, {'email': 'badlogin', 'password': 'admin'})
        self.assertContains(response, 'msg', status_code=400)
 
        # Bad password
        response = self.client.post(url, {'email': 'contact@ionyse.com', 'password': 'badpassword'})
        self.assertContains(response, 'msg', status_code=400)
        user.save()
        response = self.client.post(url, {'email': 'foo@bar.com', 'password': 'foobar'})
        self.assertContains(response, 'msg', status_code=400)
 
        # Connection OK
        response = self.client.post(url, {'email': 'contact@ionyse.com', 'password': 'admin'})
        self.assertContains(response, 'msg')

src/i/o/ionyweb-0.3/ionyweb/administration/tests/pages.py   ionyweb(Download)
        # GET - list of pages
        response = self.client.get(url)
        self.assertContains(response, 'page_list')
        self.assertEqual(len(response.context['pages']), 91)
 
 
        response = self.client.get(url, {'layout_section_slug': settings.SLUG_CONTENT})
        self.assertContains(response, settings.SLUG_CONTENT)
 
    def test_get_page_view(self):
        # GET - Add a child
        response = self.client.get(url, {'parent': 1})
        self.assertContains(response, '<input type=\\"hidden\\" name=\\"parent\\" value=\\"1\\"')
 
        # GET - edit form
        url = test_reverse('wa-page', args=[1])
        response = self.client.get(url)
        self.assertContains(response, '<input id=\\"id_title\\" type=\\"text\\" name=\\"title\\" value=\\"Home\\" maxlength=\\"255\\" />')
        # Homepage doesn't show slug field
        self.assertContains(response, '<input type=\\"hidden\\" name=\\"slug\\" id=\\"id_slug\\">')

src/i/o/ionyweb-HEAD/ionyweb/administration/tests/pages.py   ionyweb(Download)
        # GET - list of pages
        response = self.client.get(url)
        self.assertContains(response, 'page_list')
        self.assertEqual(len(response.context['pages']), 91)
 
 
        response = self.client.get(url, {'layout_section_slug': settings.SLUG_CONTENT})
        self.assertContains(response, settings.SLUG_CONTENT)
 
    def test_get_page_view(self):
        # GET - Add a child
        response = self.client.get(url, {'parent': 1})
        self.assertContains(response, '<input type=\\"hidden\\" name=\\"parent\\" value=\\"1\\"')
 
        # GET - edit form
        url = test_reverse('wa-page', args=[1])
        response = self.client.get(url)
        self.assertContains(response, '<input id=\\"id_title\\" type=\\"text\\" name=\\"title\\" value=\\"Home\\" maxlength=\\"255\\" />')
        # Homepage doesn't show slug field
        self.assertContains(response, '<input type=\\"hidden\\" name=\\"slug\\" id=\\"id_slug\\">')

  1 | 2  Next