Commits

Andreas Loupasakis committed db15b82

Fixed response codes in permission tests.

  • Participants
  • Parent commits 766df44

Comments (0)

Files changed (1)

File transifex/resources/tests/views/permissions.py

         # Check download file perms
         resp = self.client['registered'].get(reverse('download_translation',
             args=[self.project.slug, self.resource.slug, self.language.code]))
-        self.assertEqual(resp.status_code, 200)
+        self.assertEqual(resp.status_code, 302)
 
 
     def test_team_member(self):
         # Check download file perms
         resp = self.client['team_member'].get(reverse('download_translation',
             args=[self.project.slug, self.resource.slug, self.language.code]))
-        self.assertEqual(resp.status_code, 200)
+        self.assertEqual(resp.status_code, 302)
 
 
     def test_maintainer(self):
         # Check download file perms
         resp = self.client['maintainer'].get(reverse('download_translation',
             args=[self.project.slug, self.resource.slug, self.language.code]))
-        self.assertEqual(resp.status_code, 200)
+        self.assertEqual(resp.status_code, 302)