def METHOD_NAME(self):
    self.db().store_cert_desc(SAMPLE_CERT, 0, 0)
    sha256_hash = hashlib.sha256("hello\x00").digest()
    cert = self.db().get_cert_by_sha256_hash(sha256_hash)
    self.assertEqual(SAMPLE_CERT.der, cert)