from django.test import TestCase


class OWebViewTests(TestCase):
    """Provides view related tests"""
    fixtures = ['oweb_testdata_01.json']

from django.test import TestCase


class OWebViewTests(TestCase):
    """Provides view related tests"""
    fixtures = ['oweb_testdata_01.json']

    def setup(self):
        """Prepare general testing settings"""
        # urls must be specified this way, because the class-attribute can not
        # use a namespace, which is required by the app
        self.urls = patterns('',
            url(r'', include('oweb.urls', namespace='oweb')),
        )

Add test specific url configuration
Add test specific url configuration

  from django.test import TestCase
  
  
  class OWebViewTests(TestCase):
      """Provides view related tests"""
      fixtures = ['oweb_testdata_01.json']
  
+     def setup(self):
+         """Prepare general testing settings"""
+         # urls must be specified this way, because the class-attribute can not
+         # use a namespace, which is required by the app
+         self.urls = patterns('',
+             url(r'', include('oweb.urls', namespace='oweb')),
+         )
+ 
Add test specific url configuration
## Code Before:
from django.test import TestCase


class OWebViewTests(TestCase):
    """Provides view related tests"""
    fixtures = ['oweb_testdata_01.json']

## Instruction:
Add test specific url configuration
## Code After:
from django.test import TestCase


class OWebViewTests(TestCase):
    """Provides view related tests"""
    fixtures = ['oweb_testdata_01.json']

    def setup(self):
        """Prepare general testing settings"""
        # urls must be specified this way, because the class-attribute can not
        # use a namespace, which is required by the app
        self.urls = patterns('',
            url(r'', include('oweb.urls', namespace='oweb')),
        )
