def METHOD_NAME(self):
    n = 'chain'
    yield self.get_and_check(n, False)
    # Upload a valid key
    handler = self.request({'name': 'key', 'content': helpers.HTTPS_DATA['key']}, role='admin')
    yield handler.post('key')
    # Upload a valid chain
    handler = self.request({'name': 'cert', 'content': helpers.HTTPS_DATA['cert']}, role='admin')
    yield handler.post('cert')
    State.tenants[1].cache.hostname = 'localhost'
    body = {'name': 'chain', 'content': helpers.HTTPS_DATA[n]}
    handler = self.request(body, role='admin')
    yield handler.post(n)
    yield self.get_and_check(n, True)
    handler = self.request(role='admin')
    yield handler.delete(n)
    yield self.get_and_check(n, False)