예제 #1
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'
예제 #2
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"
예제 #3
0
def test_tax_form_to_pdf():
    form = TaxForm(1999)
    with pytest.raises(NotImplementedError):
        form.to_pdf()
예제 #4
0
def test_tax_form_creation_invalid():
    with pytest.raises(ValueError):
        TaxForm('should be an integer')
예제 #5
0
def test_tax_form_to_pdf():
    form = TaxForm(1999)
    with pytest.raises(NotImplementedError):
        form.to_pdf()