Python Unittest: Handling Mock Objects