def test_cache_key(self):

        assert (utils.ValidationAnnotator(self.file).cache_key ==
                'validation-task:files.File:{0}:None'.format(self.file.pk))

        assert (utils.ValidationAnnotator(self.file_upload, listed=False)
                .cache_key ==
                'validation-task:files.FileUpload:{0}:False'.format(
                    self.file_upload.pk))
Tests that the correct cache key is generated for a given object.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/tests/test_utils.py/TestValidationAnnotatorListed.test_cache_key