How to write registering account test cases?
问题 This is a follow up question on this post After tweak my code as suggestion on the original post, below is my full working code. However, I have some problems and questions: How to test createAccount () that can create account successfully or can throw exception ? This is my test but createAccount() doesn't have parameters, so how to add input to it for testing ? def test_canCreateAccount(ctrl): #valid email and password email = 'hello@gmail.com' password1 = 'beautiful' password2 = 'beautiful