On the actual problem, this is a big red flag for me: 'isinstance(zapi.getSiteManager(), FiveSiteManager)': True, Fails. So, it's not a FivesiteManager. What is it? None, or something else? Since this seems to be a cleanup issue, my guess is: Something else. Probably another one of the site tests doesn't clean up (and that's probably my fault).