How would one test the OS methods provided in python. For example how would you test the use of os.mkdir
?
def create_folder(self):
os.mkdir("/parentFolder/newFolder")
What can be used to test this method?
This method would have test cases such as
-
Verifying the folder was created
-
Insufficient permissions to create folder
-
Insufficient space to create folder
Thanks
Aucun commentaire:
Enregistrer un commentaire