def setUp(self):
        super(SystemGatewayPublicFileTestCase, self).setUp()
        self.gw = SystemGateway()
        self.user1 = make_storage_user(username='sharer')
        self.vgw = ReadWriteVolumeGateway(self.user1)
        name = 'filename'
        hash = self.factory.get_fake_hash()
        storage_key = uuid.uuid4()
        crc = 12345
        size = deflated_size = 10
        self.root = self.vgw.get_root()
        file1 = self.vgw.make_file_with_content(
            self.root.id, name, hash, crc, size, deflated_size, storage_key,
            mimetype='fakemime')
        self.file = self.vgw._get_node_simple(file1.id)