Ejemplo n.º 1
0
    def test_get(self):
        view = self.get_view()
        request = request_with_user(self.user)
        response = view.get(request)

        # Get is not allowed, so a redirect will be given
        self.assertEqual(302, response.status_code)
Ejemplo n.º 2
0
 def get_view(self):
     view = ReservationCreateOrChangeView()
     view.request = request_with_user(self.user)
     return view
Ejemplo n.º 3
0
 def get_view(self):
     view = MarkReservationAsDone()
     view.request = request_with_user(self.user)
     return view
Ejemplo n.º 4
0
 def get_view(self):
     view = ChangeReservationView()
     view.request = request_with_user(self.user)
     return view