def _long_to_bin(x, hex_format_string):
    return binascii.unhexlify((hex_format_string % x).encode('ascii'))
This tests that the cache is cleared whenever a site is deleted
dataset/ETHPy150Open gratipay/gratipay.com/gratipay/security/crypto.py/_long_to_bin--crossover with--dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailcore/tests/tests.py/TestSiteRootPathsCache.test_cache_clears_when_site_deleted