youknowone / itunes-iap

Apple iTunes In-app purchase verification tool
http://itunes-iap.readthedocs.io
Other
136 stars 50 forks source link

Add structure unittest and add test for the Itunes' responses #9

Closed 0xbepresent closed 9 years ago

0xbepresent commented 9 years ago

I was seeing the tests and it looks very well. I wanted to improve them so I put them in a unittest class.

Also, I created a new test. It help us to mock the Itunes' responses and we can test some parts of the core.py. For example, we can mock the Itunes' response and generate a different http status code, then the core.py can generate the ItunesServerNotAvailable exception.

Thanks for the feedback

youknowone commented 9 years ago

Thank you. This is quite better

caffodian commented 9 years ago

thanks for this! I was about to spend a few hours doing so myself.

0xbepresent commented 9 years ago

Great!!