from django.conf.urls import patterns, url
from django.views.generic import TemplateView


urlpatterns = patterns(
    '',
    url(r'^$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/bar/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/bar/baz/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_context_processor.html')),
    url(r'^fail/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_fail_syntax.html')),
    url(r'^bad-url-var/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_bad_variable.html')),
)

from django.conf.urls import url
from django.views.generic import TemplateView


urlpatterns = [
    url(r'^$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/bar/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/bar/baz/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_context_processor.html')),
    url(r'^fail/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_fail_syntax.html')),
    url(r'^bad-url-var/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_bad_variable.html')),
]

Stop using patterns() in the test URLs.
Stop using patterns() in the test URLs.

- from django.conf.urls import patterns, url
+ from django.conf.urls import url
  from django.views.generic import TemplateView
  
  
+ urlpatterns = [
- urlpatterns = patterns(
-     '',
      url(r'^$',
          TemplateView.as_view(
              template_name='soapboxtest/test_success.html')),
      url(r'^foo/$',
          TemplateView.as_view(
              template_name='soapboxtest/test_success.html')),
      url(r'^foo/bar/$',
          TemplateView.as_view(
              template_name='soapboxtest/test_success.html')),
      url(r'^foo/bar/baz/$',
          TemplateView.as_view(
              template_name='soapboxtest/test_context_processor.html')),
      url(r'^fail/$',
          TemplateView.as_view(
              template_name='soapboxtest/test_fail_syntax.html')),
      url(r'^bad-url-var/$',
          TemplateView.as_view(
              template_name='soapboxtest/test_bad_variable.html')),
- )
+ ]
  
Stop using patterns() in the test URLs.
## Code Before:
from django.conf.urls import patterns, url
from django.views.generic import TemplateView


urlpatterns = patterns(
    '',
    url(r'^$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/bar/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/bar/baz/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_context_processor.html')),
    url(r'^fail/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_fail_syntax.html')),
    url(r'^bad-url-var/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_bad_variable.html')),
)

## Instruction:
Stop using patterns() in the test URLs.
## Code After:
from django.conf.urls import url
from django.views.generic import TemplateView


urlpatterns = [
    url(r'^$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/bar/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_success.html')),
    url(r'^foo/bar/baz/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_context_processor.html')),
    url(r'^fail/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_fail_syntax.html')),
    url(r'^bad-url-var/$',
        TemplateView.as_view(
            template_name='soapboxtest/test_bad_variable.html')),
]
