def METHOD_NAME(self):
    # fields are trimmed for readability
    res = {'created-at': '2019-10-24T20:45:19.201000',
           'description': 'The policy.d overrides file',
           'download': {'hash-sha-256': 'e3b0c4', 'hash-sha-384': '38b060a751ac914898b95b',
                        'hash-sha-512': 'cf83e1357eef1a538327af927da3e',
                        'hash-sha3-384': '0c63a75b1bbed1e058d5f004',
                        'size': 0,
                        'url': 'https://api.charmhub.io/api/v1/resMGU0L516cGTTwNam.policyd-override_0'},
           'filename': 'policyd-override.zip', 'name': 'policyd-override', 'revision': 1,
           'type': 'file'}
    existing = {
        'policyd-override':
            client.Resource(charmresource=None,
                            application='keystone', id_='keystone/policyd-override', pending_id='',
                            timestamp='0001-01-01T00:00:00Z', username='', name='policyd-override',
                            origin='store', type='file', path='policyd-override.zip',
                            description='The policy.doverrides file',
                            revision=0, fingerprint='OLBgp1GsljhM2TJ+sbHjaiH9txEUvgdDTAzHv2P24donTt6/529l+9Ua0vFImLlb',
                            size=0)}
    assert utils.should_upgrade_resource(res, existing)