I think ``global`` is not needed here, I think you put this statement inside the methods before you reference the variable.  I could be wrong.  Also FYI, normally globals aren't a good idea but it's okay in unittest, they are allowed to be a bit sloppy.