We do not support private versions anymore in .org
This was only working on /docs/ paths. Now, with El Proxito we are not
respecting the privacy level in community site.
@@ -169,30 +169,6 @@ class PrivacyTests(TestCase):
r = self.client.get('/projects/django-kong/')
self.assertContains(r, 'test-slug')
- def test_private_doc_serving(self):
- kong = self._create_kong('public', 'private')
-
- self.client.login(username='eric', password='test')
- Version.objects.create(
- project=kong, identifier='test id',
- verbose_name='test verbose', privacy_level='private', slug='test-slug', active=True,
- )
- self.client.post(
- '/dashboard/django-kong/versions/',
- {
- 'version-test-slug': 'on',
- 'privacy-test-slug': 'private',
- },
- )
- r = self.client.get('/docs/django-kong/en/test-slug/')
- self.client.login(username='eric', password='test')
- self.assertEqual(r.status_code, 404)
-
- # Make sure it doesn't show up as tester
- self.client.login(username='tester', password='test')
- r = self.client.get('/docs/django-kong/en/test-slug/')
- self.assertEqual(r.status_code, 401)
-
# Private download tests
@override_settings(DEFAULT_PRIVACY_LEVEL='private')
