'Check we don\'t send is_public key by default with Glance v2.'

def test_detail_v2(self):

    self.override_config('glance_api_version', 2)
    with mock.patch.object(self.service, '_client') as client_mock:
        client_mock.return_value = []
        result = self.service.detail(self.context)
    self.assertListEqual([], result)
    client_mock.call.assert_called_once_with(self.context, 'list')
