'Verifies that the headers returned by conversion code are unicode.
Headers are passed via http in non-testing mode, which automatically
converts them to unicode. Verifying that the method does the
conversion proves that we aren\'t passing data that works in tests
but will fail in production.'

def test_headers_are_unicode(self):

    fixture = {'name': 'fake    public    image', 'is_public': True, 'size': 19, 'location': 'file:///tmp/glance-tests/2', 'properties': {'distro': 'Ubuntu    10.04    LTS'}}
    headers = utils.image_meta_to_http_headers(fixture)
    for (k, v) in six.iteritems(headers):
        self.assertIsInstance(v, six.text_type)
