Skip to content

Instantly share code, notes, and snippets.

@katiayn
Created January 23, 2017 22:27
Show Gist options
  • Save katiayn/445db11c9048eb6afdf8ab4f01ab0d12 to your computer and use it in GitHub Desktop.
Save katiayn/445db11c9048eb6afdf8ab4f01ab0d12 to your computer and use it in GitHub Desktop.
class ProductQuestionnaireCreateTestCase(SimpleTestCase):
def test_vat_20_if_biscuit_coated_in_chocolate(self):
calc = VATCalculator()
self.assertEqual(
calc.calculate_vat(
is_biscuit=True,
is_coated_in_chocolate=True
), 20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment