Skip to content

Commit

Permalink
apparently tax addresses length == num addresses * num items now.
Browse files Browse the repository at this point in the history
  • Loading branch information
jobelenus committed Mar 3, 2014
1 parent 3b2522b commit 68ac286
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_avalara.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def test_justtozip():
tax = api.post_tax(doc)
assert tax.is_success is True
assert tax.TotalTax > 0
assert len(tax.TaxAddresses) == 2
assert len(tax.TaxAddresses) == 6
assert len(tax.TaxLines) == 3
assert len(tax.TaxLines[0].TaxDetails) > 0
assert tax.DocCode
Expand Down Expand Up @@ -281,7 +281,7 @@ def test_posttax():
tax = api.post_tax(doc)
assert tax.is_success is True
assert tax.TotalTax > 0
assert len(tax.TaxAddresses) == 2
assert len(tax.TaxAddresses) == 6
assert len(tax.TaxLines) == 3
assert len(tax.TaxLines[0].TaxDetails) > 0
assert tax.DocCode
Expand Down Expand Up @@ -343,7 +343,7 @@ def test_posttax_commit_exempt():
assert doc.DocType == Document.DOC_TYPE_SALE_INVOICE # make sure the doc type changes with commit
assert tax.is_success is True
assert tax.TotalTax == '0'
assert len(tax.TaxAddresses) == 2
assert len(tax.TaxAddresses) == 4
assert len(tax.TaxLines) == 2


Expand All @@ -365,7 +365,7 @@ def test_posttax_commit():
assert tax.is_success is True
assert tax.TotalTax > 0
assert tax.total_tax == tax.TotalTax
assert len(tax.TaxAddresses) == 2
assert len(tax.TaxAddresses) == 4
assert len(tax.TaxLines) == 2
assert len(tax.TaxLines[0].TaxDetails) > 0

Expand Down

0 comments on commit 68ac286

Please sign in to comment.