def test_create(self): try: do = DirectoryObject("test", temporary=True) do.remove() do.create() if not os.path.exists(do.path): raise Exception("Directory has not been created") except Exception as exc: traceback.print_exc() self.fail(exc)