~grupoesoc/cubicerp-addons/7.0

« back to all changes in this revision

Viewing changes to report_geraldo/lib/geraldo/site/newsite/django_1_0/tests/regressiontests/utils/decorators.py

  • Committer: Cubic ERP
  • Date: 2014-01-07 15:38:09 UTC
  • Revision ID: info@cubicerp.com-20140107153809-4jmif3zoi8rcveve
[ADD] cubicReport

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.test import TestCase
 
2
 
 
3
class DecoratorFromMiddlewareTests(TestCase):
 
4
    """
 
5
    Tests for view decorators created using
 
6
    ``django.utils.decorators.decorator_from_middleware``.
 
7
    """
 
8
 
 
9
    def test_process_view_middleware(self):
 
10
        """
 
11
        Test a middleware that implements process_view.
 
12
        """
 
13
        self.client.get('/utils/xview/')