Skip to content

Instantly share code, notes, and snippets.

@gunesmes
Last active January 4, 2019 08:49
Show Gist options
  • Save gunesmes/6423898 to your computer and use it in GitHub Desktop.
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
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