def test_get_cost_text(self): self.assertIsNone( DataHelper.get_cost_text( None, # 名称無し 3000, TaxType.objects.get(pk=1), # 税別 ), ) self.assertIsNone( DataHelper.get_cost_text( 'インターネット利用料', # 名称無し 0, TaxType.objects.get(pk=1), # 税別 ), ) self.assertEqual( DataHelper.get_cost_text( 'インターネット利用料', # 名称無し 3000, TaxType.objects.get(pk=0), # 不明 ), '3,000円', ) self.assertEqual( DataHelper.get_cost_text( 'インターネット利用料', # 名称無し 3000, TaxType.objects.get(pk=1), # 税別 ), '3,000円(税別)', )
def certification_fee_text(self): return DataHelper.get_cost_text( '車庫証明手数料', # dummy self.certification_fee, self.certification_fee_tax_type)
def garage_deposit_text(self): return DataHelper.get_cost_text( '駐車場保証料', # dummy self.garage_deposit, self.garage_deposit_tax_type)
def garage_charge_text(self): return DataHelper.get_cost_text( '駐車場手数料', # dummy self.garage_charge, self.garage_charge_tax_type)
def garage_fee_text(self): return DataHelper.get_cost_text( '駐車場月額', # dummy self.garage_fee, self.garage_fee_tax_type)
def initial_cost_text3(self): return DataHelper.get_cost_text(self.initial_cost_name3, self.initial_cost3, self.initial_cost_tax_type3)
def initial_cost_text2(self): return DataHelper.get_cost_text(self.initial_cost_name2, self.initial_cost2, self.initial_cost_tax_type2)
def initial_cost_text1(self): return DataHelper.get_cost_text(self.initial_cost_name1, self.initial_cost1, self.initial_cost_tax_type1)