def test_tax_form_creation_valid(): TaxForm(1999) form = TaxForm(1999, {'field_1': 47}) assert form.form_id() assert form.form_name() assert form.year == 1999 assert form.tax_unit_id == '0'
def test_tax_form_creation_valid(): TaxForm(1999) form = TaxForm(1999, {"field_1": 47}) assert form.form_id() assert form.form_name() assert form.year == 1999 assert form.tax_unit_id == "0"
def test_tax_form_to_pdf(): form = TaxForm(1999) with pytest.raises(NotImplementedError): form.to_pdf()
def test_tax_form_creation_invalid(): with pytest.raises(ValueError): TaxForm('should be an integer')
def test_tax_form_to_pdf(): form = TaxForm(1999) with pytest.raises(NotImplementedError): form.to_pdf()