I am playing with Google Calendar API, creating some useful function.
I another hand, I want to do it right puting some useful doctest and starting agile development.
How to write doctest since the result of each function is not really predictible (Depending of what is new on the server) :
>>> calendar = GoogleCalendar(user= blabla , password= blablabla ) >>> calendar.list() login@trunat.fr s Calendar List 0. ... ...
If I don t want to leave the password in the source code, How do I do ?
How to write test for all the function of a class without writing each time the same thing to each function ?
>>> calendar = GoogleCalendar(user= blabla , password= blablabla ) >>> calendar.myFunction()
For each function of GoogleCalendar, I will have to create first the object ?
Thank you for your help