def test_new_folder(self): self.contentType = "image" self.result = True if not os.path.exists(BASE + self.contentType + '/'): try: createFolder(self.contentType) except Exception, e: self.result = False finally:
def test_repeat_folder(self): self.contentType = "image" self.result = True if os.path.exists(BASE + self.contentType + '/'): pass else: createFolder(self.contentType) try: createFolder(self.contentType) except Exception, e: self.result = False