asl97 / ch.py-abandon

rewriting the project atm...
2 stars 2 forks source link

Bug reproduction tools #3

Open asl97 opened 8 years ago

asl97 commented 8 years ago

Use Cases: Checking if a problem affect the library Testing if something is properly fix without needing to connect to chatango to test

james-d-elliott commented 8 years ago

Sounds like you want to use assert().

https://wiki.python.org/moin/UsingAssertionsEffectively

asl97 commented 8 years ago

assert is a run time tool, it would be pretty hard and probably stupid to have a test case with an active online connection to chatango.

oops, I thought this was the test cases issue.

well, assert would be the right way to test for user error but a proper data dump would be better in more cases