Example #1
0
     UserDataRequestCreate.as_view(),
     name='user_data_request'
 ),
 url(
     r'^user/new/(?P<token>.*)/$',
     UserDatasetCreate.as_view(),
     name='user_create_dataset'
 ),
 url(
     r'^user/(?P<token>.*)/$',
     UserDataset.as_view(),
     name='user_dataset'
 ),
 url(
     r'^reference/$',
     ReferencePaperList.as_view(),
     name='reference_paper_list'
 ),
 url(
     r'^reference/new/$',
     ReferencePaperCreate.as_view(),
     name='reference_paper_create'
 ),
 url(
     r'^reference/edit/(?P<pk>\d+)$',
     ReferencePaperUpdate.as_view(),
     name='reference_paper_update'
 ),
 url(
     r'^reference/delete/(?P<pk>\d+)$',
     ReferencePaperDelete.as_view(),
Example #2
0
 def test_reference_paper_list(self):
     found = resolve('/dataset/reference/')
     self.assertEqual(found.func.__name__, ReferencePaperList.as_view().__name__)