this might be your problem. This code is run when the module is imported - and since you cannot be entirely sure when nosetests imports the module - this class variable (authenticator) might be overwritten if hive.py is imported _after_ this module. I would suggest moving the these three line to the actual test case.