@@ -135,33 +135,33 @@ def setUpTestData(cls):
135135 unit_multiple = None ,
136136 times_per_month = None ,
137137 months_per_year = None ,
138- quantity_produced = None ,
138+ quantity_purchased = None ,
139139 )
140140 cls .foodpurchase2 = FoodPurchase (
141141 unit_multiple = 2 ,
142142 times_per_month = 5 ,
143143 months_per_year = 12 ,
144- quantity_produced = 120 ,
144+ quantity_purchased = 120 ,
145145 )
146146 # Incorrect: 2 * 5 * 12 = 120
147147 cls .foodpurchase3 = FoodPurchase (
148148 unit_multiple = 2 ,
149149 times_per_month = 5 ,
150150 months_per_year = 12 ,
151- quantity_produced = 100 ,
151+ quantity_purchased = 100 ,
152152 )
153153
154- def test_validate_quantity_produced (self ):
154+ def test_validate_quantity_purchased (self ):
155155 """
156- Test validate_quantity_produced method
156+ Test validate_quantity_purchased method
157157 """
158158 # Missing data should not raise ValidationError
159- self .foodpurchase1 .validate_quantity_produced ()
159+ self .foodpurchase1 .validate_quantity_purchased ()
160160 # Expected consistant values, should not raise
161- self .foodpurchase2 .validate_quantity_produced ()
161+ self .foodpurchase2 .validate_quantity_purchased ()
162162 # Incorrect: 2 * 5 * 12 = 120
163163 with conditional_logging ():
164- self .assertRaises (ValidationError , self .foodpurchase3 .validate_quantity_produced )
164+ self .assertRaises (ValidationError , self .foodpurchase3 .validate_quantity_purchased )
165165
166166
167167class PaymentInKindTestCase (TestCase ):
0 commit comments