Moved from djangos version of unittest