Last active
January 4, 2019 08:49
-
-
Save gunesmes/6423898 to your computer and use it in GitHub Desktop.
This example shows the importance of the static test techniques.Requirement: if the user doesn't have any coupon, he can not cancel coupons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coupon = user.get_coupon() | |
if coupon <= 1: | |
#if the user doesn't have any coupon, give warning | |
message = "You don/'t have any coupon to cancel" | |
else: | |
#open coupon cancellation page | |
show_cancellation_page() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment