'Verifies that data is the same after being passed through headers'

def test_data_passed_properly_through_headers(self):

    fixture = {'is_public': True, 'deleted': False, 'name': None, 'size': 19, 'location': 'file:///tmp/glance-tests/2', 'properties': {'distro': 'Ubuntu    10.04    LTS'}}
    headers = utils.image_meta_to_http_headers(fixture)
    class FakeResponse(object, ):
        pass
    response = FakeResponse()
    response.headers = headers
    result = utils.get_image_meta_from_headers(response)
    for (k, v) in six.iteritems(fixture):
        if (v is not None):
            self.assertEqual(v, result[k])
        else:
            self.assertNotIn(k, result)
