Beispiel #1
0
 def test_character_data_list(self):
     """
     Tests List
     """
     view = ExtraCharacterDataList.as_view()
     request = self.request_factory.get(
         reverse('extra_data_character')
     )
     request.user = self.user
     response = view(request)
     self.assertEqual(response.status_code, 200)
     content = json.loads(response._container[0])
     self.assertEqual(len( content.get('character')), 2)
Beispiel #2
0
# -*- coding: utf-8 -*-

from django.conf.urls import url, patterns
from apps.sp.views.panel.Extra import ExtraCharacterDataList


urlpatterns = patterns('',

                       #Character
                       url(r'^data-character/$',
                           ExtraCharacterDataList.as_view(),
                           name='extra_data_character'),

                       )