Ejemplo n.º 1
0
 def test_update_campaign_status_admin(self):
     request = self.factory.post('update_campaign_status_admin/1/1/',
                                 follow=True)
     request.user = self.user
     request.session = {}
     response = update_campaign_status_admin(request, 1, 1)
     self.assertEqual(response.status_code, 302)
     self.assertEqual(response['Location'],
                      '/admin/dialer_campaign/campaign/')
Ejemplo n.º 2
0
 def test_update_campaign_status_admin(self):
     request = self.factory.post('update_campaign_status_admin/1/1/',
                                 follow=True)
     request.user = self.user
     request.session = {}
     response = update_campaign_status_admin(request, 1, 1)
     self.assertEqual(response.status_code, 302)
     self.assertEqual(response['Location'],
                      '/admin/dialer_campaign/campaign/')