'Test that if a layer is not public then not all are returned when the
client is not logged in'

def test_layers_get_list_unauth_some_public(self):

    layer = Layer.objects.all()[0]
    layer.set_permissions(self.perm_spec)
    resp = self.api_client.get(self.list_url)
    self.assertValidJSONResponse(resp)
    self.assertEquals(len(self.deserialize(resp)['objects']), 7)
