示例#1
0
 def test_get_taxes(self):
     data = {
         'location': '100',
         'just_value': '125000',
         'assessed_value': '120000',
         'exempt_value': '25000',
     }
     form = CurrentlyOwnedForm(data=data)
     form.is_valid()
     self.assertIsInstance(form.get_taxes(), TaxCalculatorAssessed)
示例#2
0
 def test_get_taxes(self):
     previous_data = {
         'location': '100',
         'just_value': '125000',
         'assessed_value': '120000',
         'exempt_value': '25000',        
     }
     data = {
         'location': '204',
         'just_value': '200000',
     }
     previous_form = CurrentlyOwnedForm(data=previous_data)
     previous_form.is_valid()
     form = NewlyPurchasedForm(data=data)
     form.is_valid()
     self.assertIsInstance(
         form.get_taxes(previous_form.get_taxes()), TaxCalculatorPortability
     )