'Check that private projects don\'t show up in: builds, downloads,
detail, homepage'

def test_private_repo(self):

    self._create_kong('private', 'private')
    self.client.login(username='eric', password='test')
    r = self.client.get('/projects/django-kong/')
    self.assertEqual(r.status_code, 200)
    r = self.client.get('/projects/django-kong/builds/')
    self.assertEqual(r.status_code, 200)
    r = self.client.get('/projects/django-kong/downloads/')
    self.assertEqual(r.status_code, 200)
    self.client.login(username='tester', password='test')
    r = self.client.get('/')
    self.assertNotContains(r, 'Django    Kong')
    r = self.client.get('/projects/django-kong/')
    self.assertEqual(r.status_code, 404)
    r = self.client.get('/projects/django-kong/builds/')
    self.assertEqual(r.status_code, 404)
    r = self.client.get('/projects/django-kong/downloads/')
    self.assertEqual(r.status_code, 404)
