'Ensure build api view delegates correct serializer
Super users should be able to read/write the `builder` property, but we
don\'t expose this to end users via the API'

def test_make_build_protected_fields(self):

    build = get(Build, project_id=1, version_id=1, builder='foo')
    client = APIClient()
    api_user = get(User, staff=False, password='test')
    client.force_authenticate(user=api_user)
    resp = client.get('/api/v2/build/{0}/'.format(build.pk), format='json')
    self.assertEqual(resp.status_code, 200)
    client.force_authenticate(user=User.objects.get(username='super'))
    resp = client.get('/api/v2/build/{0}/'.format(build.pk), format='json')
    self.assertEqual(resp.status_code, 200)
    self.assertIn('builder', resp.data)
