Exemple #1
0
    def setUp(self):
        super(TestPreprintProviderList, self).setUp()

        self.provider1 = PreprintProviderFactory()
        self.provider2 = PreprintProviderFactory()

        self.user = AuthUserFactory()

        self.request = RequestFactory().get('/fake_path')
        self.view = views.PreprintProviderList()
        self.view = setup_user_view(self.view, self.request, user=self.user)
Exemple #2
0
 def view(self, req):
     plain_view = views.PreprintProviderList()
     return setup_view(plain_view, req)