'Establish a clean test environment'

def setUp(self):

    super(TestImageSerializer, self).setUp()
    self.receiving_user = 'fake_user'
    self.receiving_tenant = 2
    self.context = glance.context.RequestContext(is_admin=True, user=self.receiving_user, tenant=self.receiving_tenant)
    self.serializer = glance.api.v1.images.ImageSerializer()
    def image_iter():
        for x in ['chunk', '678911234', '56789']:
            (yield x)
    self.FIXTURE = {'image_iterator': image_iter(), 'image_meta': {'id': UUID2, 'name': 'fake    image    #2', 'status': 'active', 'disk_format': 'vhd', 'container_format': 'ovf', 'is_public': True, 'created_at': timeutils.utcnow(), 'updated_at': timeutils.utcnow(), 'deleted_at': None, 'deleted': False, 'checksum': '06ff575a2856444fbe93100157ed74ab92eb7eff', 'size': 19, 'owner': _gen_uuid(), 'location': 'file:///tmp/glance-tests/2', 'properties': {}}}
