Created
January 23, 2017 22:10
-
-
Save katiayn/2d75405e7868f31500b1ee189c7f9c09 to your computer and use it in GitHub Desktop.
This file contains 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
class ProductQuestionnaireTestCase(TestCase): | |
def test_vat_20_if_biscuit_coated_in_chocolate(self): | |
product = ProductFactory() | |
url = '/{}/questionnaire/'.format(product.pk) | |
self.client.post(url, { | |
'is_biscuit': True, | |
'is_coated_in_chocolate': True | |
}) | |
product.refresh_from_db() | |
self.assertEqual(product.vat, 20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment